Warning: Attempt to present < LXFPhotoHelper: 0x1049b5e00 > on < UIApplicationRotationFollowingController: 0x101bd4fc0 > which is already presenting < UIAlertController: 0x101e63100 >

问题

提示我们在弹出LXFPhotoHelper之前已经弹出UIAlertController这个控制器了,那我们就让弹出的操作放到UIAlertController消失之后即可。

解决方法

将方法

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;

替换为

- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex;

即可解决

// UIActionSheet的替换对应这个
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex;- (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex;

iOS - 解决Warning: Attempt to present which is already presenting相关推荐

  1. IOS:Warning: Attempt to dismiss from view controller xxxxxxxxxController: 0x15bd67f0 while a prese

    Warning: Attempt to dismiss from view controller <SetUpViewController: 0x15bd67f0> while a pre ...

  2. IOS:Warning: Attempt to dismiss from view controller xxxxxxxxxController: 0x13f6840e0

    Ios:在你使用 presentModalViewController加载过多的视图过程中,退出当前视图self dismissViewControllerAnimated:YES completio ...

  3. Warning: Attempt to present on whose view is not in模态跳转问题

    错误分析: controller A present controller B ,前提是A的view要存在,如果不存在,就会报这个错. 解决方法:  将原来的present语句由 viewDidLoa ...

  4. Attempt to present vc on vc which is already presenting vc/(null)

    在给 tableViewCell 添加长按手势弹出一个 popViewController 的时候,遇到的这个变态问题: Warning: Attempt to present <UINavig ...

  5. Attempt to present UIImagePickerController: 0x1848de00 on UINavigationController: 0x17e6ed50 wh

    Warning: Attempt to present <UIImagePickerController: 0x1848de00>  on <UINavigationControll ...

  6. Cisco 3560 丢失 IOS 解决过程

    Cisco 3560 丢失 IOS 解决过程 Flash 被清空的情况下,只能使用 Xmodem 导入,速度大约4k/s. 思科交换机3560 IOS 被删除,插上 console 之后,只能显示&q ...

  7. iOS 解决导航栏pop返回时出现黑块问题!

    iOS 解决导航栏pop返回时出现黑块问题! 问题描述: 导航栏正常从A页面push到B页面,从B页面pop返回A页面时遇到过渡过程中导航栏出现黑块的问题. 如截图所示: 问题原因: A界面导航栏被影 ...

  8. 成功解决WARNING: Ignoring invalid distribution -illow (E:\program files\python\python36\lib\site-package

    成功解决WARNING: Ignoring invalid distribution -illow (E:\program files\python\python36\lib\site-package ...

  9. 成功解决WARNING:tensorflow:From :read_data_sets (from tensorflow.contrib.learn.python.learn.

    成功解决WARNING:tensorflow:From :read_data_sets (from tensorflow.contrib.learn.python.learn. 目录 解决问题 解决思 ...

  10. 成功解决WARNING: You do not appear to have an NVIDIA GPU supported by the 430.34 NVIDIA Linux graph

    成功解决WARNING: You do not appear to have an NVIDIA GPU supported by the 430.34      NVIDIA Linux graph ...

最新文章

  1. javascript初学
  2. 青龙面板跑滴滴果园,5天种水果。
  3. 伤害世界怎么自建服务器,Hurtworld伤害世界服务器怎么架设?服务器架设图文教程...
  4. Pandas的DataFrame输出截断和省略问题
  5. 电大计算机基础知识考题,2016年电大计算机基础知识模拟试题.doc
  6. Hadoop HIVE
  7. 从信息检索顶会CIKM'20看搜索、推荐与计算广告新进展
  8. mac下ssh免密登陆远程服务器(linux)
  9. 安卓小课堂之:读写文件(内部存储)
  10. BootLoader学习笔记(1)
  11. 【Spark Summit EU 2016】沃森媒体分析系统:从单租户Hadoop到3000租户Spark的架构演进...
  12. Aliyun Linux2安装Docker
  13. JVM到底怎么进行类加载器的呢?
  14. 给linux用户的11个高级MySQL数据库面试问题和答案
  15. Android DCIM相册保存
  16. 02.配置免费图床Gitee/Github
  17. 5G时代,玖玖星球云算链引领VR技术踏上新台阶
  18. c语言中大写字母A转小写,C语言 | 大写字母A转换为小写a
  19. 【Linux】linux的网络配置(动态IP与静态IP)
  20. web安全之路(一)

热门文章

  1. 阿里云:从“亚洲巨象”到“全球航母”
  2. 小白白红队初成长(4)文件的面纱
  3. 程序设计——票务管理系统
  4. mysql建立spj_数据库概论——SQL练习一(SPJ零件问题)
  5. LaTeX \subfloat 引用子图片使用小括号
  6. 字美杯装饮料茶点打印机
  7. Ijkplayer播放视频(支持AVI格式的视频)
  8. cv1378 选课(树)
  9. matlab阿伦尼乌斯方程,马铃薯酶促褐变机理研究
  10. python魔法方法指南_2011年最热门的20种方法指南