使用UIAlertController 报错 警告 遇到的问题
来源:互联网 发布:手机钉钉 请检查网络 编辑:程序博客网 时间:2024/06/05 21:06
1.使用手机或者模拟器,当型号是6p的时候,会出现以下警告
2016-03-07 14:21:39.076 testInfo[4879:1875194] the behavior of the UICollectionViewFlowLayout is not defined because:
2016-03-07 14:21:39.076 testInfo[4879:1875194] the item height must be less than the height of the UICollectionView minus the section insets top and bottom values, minus the content insets top and bottom values.
2016-03-07 14:21:39.078 testInfo[4879:1875194] The relevant UICollectionViewFlowLayout instance is <_UIAlertControllerCollectionViewFlowLayout: 0x15ffd4630>, and it is attached to <UICollectionView: 0x160177400; frame = (0 120.667; 270 44); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x15ffd51c0>; layer = <CALayer: 0x15ffd4d00>; contentOffset: {0, 0}; contentSize: {0, 0}> collection view layout: <_UIAlertControllerCollectionViewFlowLayout: 0x15ffd4630>.
2016-03-07 14:21:39.079 testInfo[4879:1875194] Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.
2. Presenting view controllers on detached view controllers is discouraged这个警告
当使用[selfpresentViewController:alertC animated:YEScompletion:nil];的时候会出现
可以更改为
[self.view.window.rootViewControllerpresentViewController:alertC animated:YEScompletion:nil];
- 使用UIAlertController 报错 警告 遇到的问题
- 使用UIAlertController报错
- 使用JSTL中遇到的EL报错问题
- 学习遇到的问题----ios9中 UIAlertController相关
- android遇到的报错问题
- 遇到一个malloc报错的问题
- catboost sklearn 遇到的报错问题
- UIAlertController的使用(Swift)
- UIAlertController的使用示例
- UIAlertController的使用二
- UIAlertController的使用
- UIAlertController的使用
- 关于UIAlertController的使用
- UIAlertController的使用
- UIAlertController 的使用
- UIAlertController 的使用
- UIAlertController的使用
- swift 的 UIAlertController使用
- 职位的意义,工作的升华
- Nodejs的Express完成安装指导
- 拓扑排序
- Oracle 中文转为拼音
- pdf去除水印方法!【亲测可用】
- 使用UIAlertController 报错 警告 遇到的问题
- 《iOS Human Interface Guidelines》——Toolbar Bar
- 假设检验的鲁棒性
- Linux / Unix Command: filter
- Linux-安装jdk
- android避免service被杀
- 使用 Python 编写虚拟机解释器
- Tomcat中JVM内存溢出及合理配置
- mongodb学习(一)