解决方案 »
- AsyncSocket类中connecttohost调用问题
- 关于苹果消息推送的问题。
- iphone开发&前端技术分享沙龙
- 怎么把txt格式的做成iphone中的电子书
- ios系统,应用程序开发?
- 请问怎么实现Forward、back
- iPhone 5s is not available. Please select a different device and try again.
- 请指点!
- 大神帮忙看下,我的APP提交元数据被拒绝,是什么意思
- mmp找了很久的问题,一直解决不了,跪求帮助,pod第三方库,真机运行一直报错,搜遍了百度,google没找到
- 新人请教如何在一个view的outletcollection中返回某一个view的index
- 求大神,这是什么原因啊
http://stackoverflow.com/questions/13588325/shouldautorotate-method-not-called-in-ios6
大致内容是说通过UINavigationController管理的Views是不会调用shouldAutorotate方法的。
大牛 ,我现在所有的都是继承UIViewController的,怎么搞啊?请问,You would have to subclass UINavigationController and override methods shouldAutorotate and supportedIntervalOrientations.这段话是怎么理解的?
大牛 ,我现在所有的都是继承UIViewController的,怎么搞啊?请问,You would have to subclass UINavigationController and override methods shouldAutorotate and supportedIntervalOrientations.这段话是怎么理解的?
是说写一个UINavigationController的子类,然后重写它的shouldAutorotate和supportedIntervalOrientations方法,你可以试试,在这两个方法里面手动调用UIViewController的shouldAutorotate方法。
其实你只是想要适配屏幕旋转吧?在UINavigationController的rootViewController里重写shouldAutorotateToInterfaceOrientation方法,返回YES试试
大牛 ,我现在所有的都是继承UIViewController的,怎么搞啊?请问,You would have to subclass UINavigationController and override methods shouldAutorotate and supportedIntervalOrientations.这段话是怎么理解的?
是说写一个UINavigationController的子类,然后重写它的shouldAutorotate和supportedIntervalOrientations方法,你可以试试,在这两个方法里面手动调用UIViewController的shouldAutorotate方法。
其实你只是想要适配屏幕旋转吧?在UINavigationController的rootViewController里重写shouldAutorotateToInterfaceOrientation方法,返回YES试试
谢谢大牛