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,系统框不会弹出。
contentInsetAdjustmentBehavior
属性来替代它.
设置适当的枚举:
if(@available(iOS11.0,*)){
self.tableView.contentInsetAdjustmentBehavior=UIScrollViewContentInsetAdjustmentNever;
}
else{
self.automaticallyAdjustsScrollViewInsets=NO;
}
NSLocationAlwaysAndWhenInUseUsageDeion
在iOS11,原有的NSLocationAlwaysUsageDeion被降级为NSLocationWhenInUseUsageDeion。因此,在原来项目中使用requestAlwaysAuthorization获取定位权限,而未在plist文件中配置NSLocationAlwaysAndWhenInUseUsageDeion,系统框不会弹出。
相关文章推荐
- iOS 11 中scrollview布局往下偏移问题automaticallyAdjustsScrollViewInsets、contentInsetAdjustmentBehavior(iOS 11
- iOS的automaticallyAdjustsScrollViewInsets属性
- iOS开发-automaticallyAdjustsScrollViewInsets属性
- iOS edgesForExtendedLayout、extendedLayoutIncludesOpaqueBars、automaticallyAdjustsScrollViewInsets属性详解
- iOS 【automaticallyAdjustsScrollViewInsets 属性介绍】
- iOS中automaticallyAdjustsScrollViewInsets属性
- 小胖说事11-------automaticallyAdjustsScrollViewInsets(个人认为iOS7中略坑爹的属性)
- IOS开发中关于automaticallyAdjustsScrollViewInsets属性
- edgesForExtendedLayout、extendedLayoutIncludesOpaqueBars、automaticallyAdjustsScrollViewInsets属性详解 )——转载
- edgesForExtendedLayout、extendedLayoutIncludesOpaqueBars、automaticallyAdjustsScrollViewInsets属性详解
- iOS automaticallyAdjustsScrollViewInsets
- [IOS]edgesForExtendedLayout、automaticallyAdjustsScrollViewInsets、、
- 记录一些易忘的属性(translucent,edgesForExtendedLayout,automaticallyAdjustsScrollViewInsets)
- automaticallyAdjustsScrollViewInsets(个人认为iOS7中略坑爹的属性)
- 坑爹属性之【automaticallyAdjustsScrollViewInsets】
- [IOS]edgesForExtendedLayout、automaticallyAdjustsScrollViewInsets
- 【iOS 1 行代码系列】之 一行代码搞定automaticallyAdjustsScrollViewInsets
- edgesForExtendedLayout、extendedLayoutIncludesOpaqueBars、automaticallyAdjustsScrollViewInsets属性见解
- automaticallyAdjustsScrollViewInsets (iOS)
- view controller的automaticallyAdjustsScrollViewInsets属性