Forum Xamarin Xamarin.iOS

iOS ScrollView pager bounce issue when contained inside UINavigationControler

linzhang.1631linzhang.1631 USMember ✭✭

There're some good example of implement custom pager view using ScrollView like:

Above sample work well, but if I have a UINavigationController as root contorller, and push above pager view as a child; when scroll to switch page(drag and move both horizontally and vertically before drop), the whole pager view also moves vertically, this is not as expected.

does anyone has idea how to disable this vertically move(or bounce) ?


  • linzhang.1631linzhang.1631 USMember ✭✭
            public override void ViewDidLoad(){
                _pagedViewController.View.Frame = new CGRect(0, topMargin + pagerHeight, frame.Width, frame.Height);

    I've wrap page view inside container controler, and had code above, I've now fix issue by comment out two lines above.
    I've found if I change pageview's height, also got vertical scroll problem, but this can be avoid by other fix.

Sign In or Register to comment.