解决alertView在强制横屏时的崩溃问题
来源:互联网 发布:ncpc nc.js 编辑:程序博客网 时间:2024/05/21 17:57
问题描述:
Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [UIAlertController shouldAutorotate] is returning YES'
解决办法:
添加类别重写shouldAutorotate方法;
#import <UIKit/UIKit.h>
@interface UIAlertView (RotationControl)
- (BOOL)shouldAutorotate;
@end
#import "UIAlertView+RotationControl.h"
@implementation UIAlertView (RotationControl)
- (BOOL)shouldAutorotate
{
returnNO;
}
@end
解决问题!
0 0
- 解决alertView在强制横屏时的崩溃问题
- 解决Shockwave flash在chrome浏览器上崩溃的问题
- 解决Shockwave flash在chrome浏览器上崩溃的问题
- 解决Shockwave flash在chrome浏览器上崩溃的问题
- 解决Shockwave flash在chrome浏览器上崩溃的问题
- 解决Shockwave flash在chrome浏览器上崩溃的问题
- 怎样解决在用浏览器时flash崩溃的问题
- 解决Shockwave flash在chrome浏览器上崩溃的问题
- 解决Jsonkit在Xcode7以上崩溃的问题
- minicom崩溃问题的解决
- 解决RealPlayer11崩溃的问题
- iOS 8.3 ios9 横屏弹出alertview 崩溃问题
- alertView otherButtonTitles:@“”,@“”崩溃 空格
- cef3加载flash崩溃问题的解决
- 解决QCombobox调用clear()崩溃的问题
- 解决在 iPad 的横屏情况下调用相册崩溃的问题
- Android 6.0 运行中手动去设置界面取消该app的某个权限,导致application被强制销毁造成app崩溃问题的解决
- 解决Windows 7在创建系统映像强制备份D盘(或其他盘)的问题
- redis 常用命令
- 2017技术雷达峰会即将于5月13日在北京举办!
- Oracle Database DRA 不支持11gR2版本的RAC
- SyntaxError: missing : after property id
- Gradle for Android 第二篇( Build.gradle入门 )
- 解决alertView在强制横屏时的崩溃问题
- P4python sync code from perforce
- 利用com.googlecode.libphonenumber解析手机号归属地
- 中文乱码问题集
- Unity世界坐标与本地坐标的一种转换方法
- sql select into 和insert into
- Android HTTP边下边播
- JS触题生情 遍历输出
- 只编译一次头文件