您的位置:首页 > 移动开发 > IOS开发

iOS 11 automaticallyAdjustsScrollViewInsets属性问题

2017-11-15 13:59 573 查看
automaticallyAdjustsScrollViewInsets属性已经不再使用,我们需要使用UIScrollView的

contentInsetAdjustmentBehavior

属性来替代它.
设置适当的枚举:
if(@available(iOS11.0,*)){
self.tableView.contentInsetAdjustmentBehavior=UIScrollViewContentInsetAdjustmentNever;
}
else{
self.automaticallyAdjustsScrollViewInsets=NO;
}
NSLocationAlwaysAndWhenInUseUsageDeion

在iOS11,原有的NSLocationAlwaysUsageDeion被降级为NSLocationWhenInUseUsageDeion。因此,在原来项目中使用requestAlwaysAuthorization获取定位权限,而未在plist文件中配置NSLocationAlwaysAndWhenInUseUsageDeion,系统框不会弹出。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ios开发 uiscrollview iOS
相关文章推荐