在工程-->target-->general里面找到Depolyment Info,里面有个device o rientation,里面第一个点上,其他的都取消就是默认竖屏了
如图:
如果我其中某个界面要用到横屏呢,是否有代码可以实现?
有一个系统的方法在默认竖屏的情况下 -(NSUInteger)supportedInterfaceOrientations{ return UIInterfaceOrientationMaskLandscape; } 使用这个方法修改为其他方式