1、iPad和iPhone上使用UIAlertController,iPhone正常,iPad失败。
(1)判断设备
设备判断(2)具体添加方法如下
UIBarButtonItem上添加
UIBarButtonItem上添加UIButton上添加
UIButton上添加左滑删除按钮,tableView上添加
左滑删除按钮,tableView上添加2、上传报错信息 ERROR ITMS-90475 解决办法
修改plist3、适配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];
}
}
网友评论