I have a UIViewController
in Interface Builder, and I add a UIScrollView
to the UIView
. It has a contentOffset
property equal to 0.0, but when I scroll the UIScrollView
to the very bottom and push another view the contentOffset
changes.
NSLog
gives me the following values:
//View just loaded
2013-09-09 16:19:27.455 my_app[24588:907] Scroll View content offset is 0.000000
//We came back from another view
2013-09-09 16:19:30.957 my_app[24588:907] Scroll View content offset is 108.000000
What's the reason of this behaviour? I've just added a UIScrollView
in IB and did nothing in code at all.
The contentHeight
of the scrollView is bigger than self.view.height
. The frame
of the scrollView stays the same.