大佬教程收集整理的这篇文章主要介绍了rotation – 支持tabbarcontroller iOS 6中morenavigationcontroller和children viewcontroller中的所有方向,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我的问题是我想在morenavigationcontroller和子视图控制器中支持所有方向.现在shoulautorotate内部的子视图控制器没有被调用更多导航控制器.
Tabbar controller with navigationcontrollers orientation ios 6
或者,您可以创建自定义tabbarcontroller并实现以下方法
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // You do not need this method if you are not supporTing earlier iOS Versions return [self.SELEctedViewController shouldAutorotateToInterfaceOrientation:interfaceOrientation]; } -(NSUInteger)supportedInterfaceOrientations { return [self.SELEctedViewController supportedInterfaceOrientations]; } -(BOOL)shouldAutorotate { return YES; }
以上是大佬教程为你收集整理的rotation – 支持tabbarcontroller iOS 6中morenavigationcontroller和children viewcontroller中的所有方向全部内容,希望文章能够帮你解决rotation – 支持tabbarcontroller iOS 6中morenavigationcontroller和children viewcontroller中的所有方向所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。