iOS开发 automaticallyAdjustsScrollViewInsets 属性设置
来源:互联网 发布:java获取所有interface 编辑:程序博客网 时间:2024/05/24 04:20
遇到的问题
苹果官方文档解释是这样的
A Boolean value that indicates whether the view controller should automatically adjust its scroll view insets.
Declaration
SWIFT
var automaticallyAdjustsScrollViewInsets: Bool
OBJECTIVE-C
@property(nonatomic, assign) BOOL automaticallyAdjustsScrollViewInsets
Discussion
The default value of this property is YES, which allows the view controller to adjust its scroll view insets in response to the screen areas consumed by the status bar, navigation bar, and toolbar or tab bar. Set to NO if you want to manage scroll view inset adjustments yourself, such as when there is more than one scroll view in the view hierarchy.
Availability
Available in iOS 7.0 and later.
就是说automaticallyAdjustsScrollViewInsets是根据按所在界面的status bar,navigationbar,与tabbar的高度,自动调整scrollview的 inset,设置为no,不让viewController调整,如果我们不让它自己调整,这个属性设置为no就行了
即:
self.automaticallyAdjustsScrollViewInsets =NO;
0 0
- iOS开发 automaticallyAdjustsScrollViewInsets 属性设置
- iOS开发-automaticallyAdjustsScrollViewInsets属性
- [IOS 开发] automaticallyAdjustsScrollViewInsets属性
- iOS开发-automaticallyAdjustsScrollViewInsets属性
- iOS开发-automaticallyAdjustsScrollViewInsets属性
- IOS开发中关于automaticallyAdjustsScrollViewInsets属性
- iOS 【automaticallyAdjustsScrollViewInsets 属性介绍】
- iOS的automaticallyAdjustsScrollViewInsets属性
- iOS中automaticallyAdjustsScrollViewInsets属性
- iOS小技巧-多个UIListView设置automaticallyAdjustsScrollViewInsets属性
- iOS的edgesForExtendedLayout、automaticallyAdjustsScrollViewInsets属性
- iOS 11 automaticallyAdjustsScrollViewInsets属性问题
- iOS 7 viewcontroller新增属性automaticallyAdjustsScrollViewInsets
- automaticallyAdjustsScrollViewInsets属性
- ios automaticallyAdjustsScrollViewInsets
- iOS UITableView显示下移问题:automaticallyAdjustsScrollViewInsets 属性浅谈
- edgesForExtendedLayout、automaticallyAdjustsScrollViewInsets属性
- edgesForExtendedLayout 和automaticallyAdjustsScrollViewInsets属性
- myEclipse集成maven
- Java +spring MVC 后台图片流在前台页面显示
- SonarQube EXECUTION FAILURE
- php 文件操作
- Android EventBus 3.0 框架
- iOS开发 automaticallyAdjustsScrollViewInsets 属性设置
- learn python the hard way(笨办法学python) 练习50
- 《编写高质量iOS与OS X代码的52个有效方法》之第二章要点
- mongodb 日志过大
- 第四届_连号区间数
- android并发网络请求的处理
- html5 indexDB
- 如何在Xib中设置Button的属性(圆角以及背景颜色)
- 汇编学习笔记之寄存器综述