UINavigationController scrolls down on back button click

百般思念 提交于 2019-12-10 17:45:16

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/7743028/uinavigationcontroller-scrolls-down-on-back-button-click

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!