navigationController.navigationBar.prefersLargeTitles = true
已经把refreshControl设置到了导航栏了我们就可以看到rubber banding
navigationItem.largeTitleDisplayMode = .never/.alway 是否让大标题出现
navigationItem.searchController
navigationItem.hidesSearchBarWhenScrolling=true
UINavigationController is responsible for some features:
UISearchControllers
Refresh controls
Rubber banding:下拉时大标题变大并随着滚动而滑动
UI ToolBar NavigationBar工具栏和导航栏 来完成自动布局
个性化的BarButtonItems和个性化的titleViews
keep your constraints inside your views
zero-size-view
UINavigationBar and UIToolbar provide position
you must provide size
constraints for width and height
implement intrinsicContentSize 限制内容变大变小
connect your subview via constraints
layout margins
directionalLayoutMargins
edgesForExtendedLayout topLayoutGuide bottomLayoutGuide
safeArea
UIViewController.additionalSafeAreaInsets
UIView.safeAreaInsetsDidChange()
UIViewController.viewSafeAreaInsetDidChange()
ancestorViewController 祖辈(基)
adjustedContentInset
frameLayoutGuide
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Main thread checker
detect invalid use of UIKit and other APIs from a background thread检测到在后台线程中无效的使用UIKit等其他APIs
performance impact 性能影响
performance overhead 性能开销
dispatch queue调度线程
despite 尽管
code refactoring 代码重构
blazingly fast and responsive 及其快速和灵敏的
incredibly fast 难以置信的快
core ML for machine learning
ARKit for augmented reality 增强现实