zoukankan      html  css  js  c++  java
  • ios8以后,UIActionSheet选择相册兼容问题

    在iOS8之前,UIActionSheet用的代理方法为

    - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex

    在iOS8之后这种代理方法无法调用相册相机等,并且警告--Warning: Attempt to present <UIImagePickerController: 0x15d933a00>  on 。。。,原因在警告里说得比较明白了,因为已经有actionsheet存在了,不能present新的。此时我们选择新的委托方法

    - (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex

     

  • 相关阅读:
    每日日报46
    每日日报45
    每日日报44
    每日日报43
    每日日报42
    每日日报41
    每日日报40
    每日日报之一周总结
    每日日报
    每日日报
  • 原文地址:https://www.cnblogs.com/YuFly-lyx/p/5731705.html
Copyright © 2011-2022 走看看