iOS自动旋转问题
2016-07-04 16:38
447 查看
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{ return (toInterfaceOrientation == UIInterfaceOrientationPortrait);
}
- (BOOL)shouldAutorotate
{
return NO;
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskPortrait;//只支持这一个方向(正常的方向)
}
{ return (toInterfaceOrientation == UIInterfaceOrientationPortrait);
}
- (BOOL)shouldAutorotate
{
return NO;
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskPortrait;//只支持这一个方向(正常的方向)
}
相关文章推荐
- iOS实现视图的映射
- 【iOS】图片缩放动画
- 让iOS开发变得更有效率-分类、工具类
- 新建iOS工程如何给所有类名添加前缀
- iOS-Error:Cannot find protocol definition for 'TencentSessionDelegate'
- iOS之常用知识点汇总
- iOS 如何把项目托管到GitHub
- iOS 实现折线图(二)
- iOS多线程NSThread,NSOperation和GCD详解
- iOS 裁剪图片
- iOS 常用正则表达式一览表
- iOS 发布上传 Error ITMS-90046
- iOS折线图实现(一)
- ios 做不倒翁动画效果
- iOS获取相册中所有图片
- 最全动画系列教程-登录动画效果
- iOS 知识基础
- iOS webview 加载html 乱码 需要UTF8转码
- iOS 中简单的获取精准本地时间的方法
- XZ_iOS之判断输入的是不是银行卡号