Adrian Grigore
Adrian Grigore

Reputation: 33318

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

Upvotes: 3

Views: 646

Answers (1)

poupou
poupou

Reputation: 43553

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.

Upvotes: 4

Related Questions