UIScrollView scrolls when clicking “Back” button in UINavigationBar

I have a UIViewController with a paged UIScrollView (3 pages). My View always starts at the second page, the middle one. The problem is that when I hit the back button in the UINavigationBar, the UIScrollView scrolls to the first page, and after that it disappears (popped from Nav Controller's stack). The visible animation behaviour is horrible.

I want the UIScrollView not to scroll when I hit the BACK button in the UINavigationBar.

The same happens when I drag the left side of the screen to the right (triggers the BACK behaviour).

Answers


With some good debugging I noticed out that the scroll view wasn't scrolling during the "Back" transition. It was just part of the left pages that were visible during the transition.

So with a simple [scrollView clipsToBounds] the problem was solved :).


Need Your Help

Next Div Does not appear correctly after floating two divs to right and left

javascript php html css html5

I have floated two divs to left and right...But the next div after those two divs does not appear correctly...

How can I Get all the rows of Gridview to be editable mode?

asp.net gridview

Getting all the rows of Gridview to be editable mode.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.