SpokaneDude
SpokaneDude

Reputation: 4984

UIScrollViews not synchronizing when leaving view and returning

I have an iPad app (XCode 5, ARC, iOS 7 and Storyboards). I have a UIView that conceptually looks like this:

enter image description here

Initially, the display looks like this (notice the time on the left hand grid):

enter image description here

When I switch to another view and return to this view, notice the time now: enter image description here

Apparently it's been like this since day one, and I just found it.

If I "nudge" the UIScrollView (move it ever so slightly), the left hand grid then shows the correct time.

Anybody have suggestions of where to look to fix this?

Upvotes: 0

Views: 70

Answers (1)

Steph Sharp
Steph Sharp

Reputation: 11682

See my answer to a similar question here.

You need to set the scrollview's contentOffset appropriately in viewWillAppear: and viewDidDisappear:.

Upvotes: 1

Related Questions