Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UINavigationController scrolls down on back button click

I'm working on an iPhone / iPad app with several navigation controllers. When I click a back button of a view while the device is in landscape mode, the previous view scrolls vertically into the screen, instead of scrolling horizontally as usual.

Push animations always work horizontally, as it should be.

What could be causing this weird problem?

Thanks,

Adrian

like image 354
Adrian Grigore Avatar asked Jun 15 '26 01:06

Adrian Grigore


1 Answers

Are you sure the view controller, you're getting back to, is set to deal with rotation properly ?

I had a similar issue using MonoTouch.Dialog until I added Autorotate = true; to every (non-leaf) DialogViewController inside my application.

like image 124
poupou Avatar answered Jun 16 '26 14:06

poupou



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!