automaticallyAdjustsScrollViewInsets属性已经不再使用,我们需要使用UIScrollView的
contentInsetAdjustmentBehavior
属性来替代它.
设置适当的枚举:
contentInsetAdjustmentBehavior
属性来替代它.
设置适当的枚举:
if(@available(iOS11.0,*)){
self.tableView.contentInsetAdjustmentBehavior=UIScrollViewContentInsetAdjustmentNever;
}
else{
self.automaticallyAdjustsScrollViewInsets=NO;
}
NSLocationAlwaysAndWhenInUseUsageDeion
在iOS11,原有的NSLocationAlwaysUsageDeion被降级为NSLocationWhenInUseUsageDeion。因此,在原来项目中使用requestAlwaysAuthorization获取定位权限,而未在plist文件中配置NSLocationAlwaysAndWhenInUseUsageDeion,系统框不会弹出。
君凯商联网-iOS-字唐名僧