解决方案 »

  1.   

    看下这个帖:
    http://stackoverflow.com/questions/13588325/shouldautorotate-method-not-called-in-ios6
    大致内容是说通过UINavigationController管理的Views是不会调用shouldAutorotate方法的。 
      

  2.   


    大牛 ,我现在所有的都是继承UIViewController的,怎么搞啊?请问,You would have to subclass UINavigationController and override methods shouldAutorotate and supportedIntervalOrientations.这段话是怎么理解的?
      

  3.   


    大牛 ,我现在所有的都是继承UIViewController的,怎么搞啊?请问,You would have to subclass UINavigationController and override methods shouldAutorotate and supportedIntervalOrientations.这段话是怎么理解的?
    是说写一个UINavigationController的子类,然后重写它的shouldAutorotate和supportedIntervalOrientations方法,你可以试试,在这两个方法里面手动调用UIViewController的shouldAutorotate方法。
    其实你只是想要适配屏幕旋转吧?在UINavigationController的rootViewController里重写shouldAutorotateToInterfaceOrientation方法,返回YES试试
      

  4.   


    大牛 ,我现在所有的都是继承UIViewController的,怎么搞啊?请问,You would have to subclass UINavigationController and override methods shouldAutorotate and supportedIntervalOrientations.这段话是怎么理解的?
    是说写一个UINavigationController的子类,然后重写它的shouldAutorotate和supportedIntervalOrientations方法,你可以试试,在这两个方法里面手动调用UIViewController的shouldAutorotate方法。
    其实你只是想要适配屏幕旋转吧?在UINavigationController的rootViewController里重写shouldAutorotateToInterfaceOrientation方法,返回YES试试
    谢谢大牛