iOS11 适配
self sizing
1 |
if #available(iOS 11.0, *) { |
safeArea
- topLayoutGuide
- bottomLayoutGuide
- contentInset
- safeAreaInsets
- addtionalSafeAreaInsets
- adjustedContentInset
- contentInsetAdjustmentBehavior
tableView 所有的 headers 和 footers 都应该使用 UITableViewHeaderFooterView
navigation bar
- titleView 和其他自定义视图需要用 autolayout
近期评论