方案之一,
在UINavigationController 里设置supportedInterfaceOrientations方法,但由于UINavigationController 是系统控件,所以需要新建一个UINavigationController 的子类,然后在子类里实现
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskAllButUpsideDown;
}