美文网首页iOS日常笔记
iOS (iPad和iPhone使用UIAlertControl

iOS (iPad和iPhone使用UIAlertControl

作者: Mr_Zhou | 来源:发表于2019-10-18 15:40 被阅读0次

    1、iPad和iPhone上使用UIAlertController,iPhone正常,iPad失败。

    (1)判断设备

    设备判断

    (2)具体添加方法如下

    UIBarButtonItem上添加

    UIBarButtonItem上添加

    UIButton上添加

    UIButton上添加

    左滑删除按钮,tableView上添加

    左滑删除按钮,tableView上添加

    2、上传报错信息 ERROR ITMS-90475 解决办法

    修改plist

    3、适配iOS13,iOS13获取不到wifi信息

    (1)plist文件中添加定位信息

    Privacy - Location When In Use Usage Description         

    App需要经过你的同意,才能在使用期间访问您的位置。

    (2)在根控制器viewdidload中添加

    #import <CoreLocation/CoreLocation.h>

    @property (strong,nonatomic) CLLocationManager *locationManager ;   

    添加:

    if(@available(iOS 13.0,*)){                 

    if([CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined){                         

                self.locationManager = [[CLLocationManager alloc]init];                         

                [self.locationManager requestWhenInUseAuthorization];      

            }          

      }

    相关文章

      网友评论

        本文标题:iOS (iPad和iPhone使用UIAlertControl

        本文链接:https://www.haomeiwen.com/subject/vziimctx.html