Xcode9.0.1

本文介绍了如何在iOS应用中配置导航控制器的大标题显示,并详细解释了UISearchController、刷新控件及橡皮筋效果的实现方式。此外还讨论了UIToolBar与UINavigationBar在自动布局中的作用,包括UIBarButtonItem与titleView的个性化定制方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 尽管
Xcode9.0.1描述

code refactoring 代码重构
blazingly fast and responsive 及其快速和灵敏的
incredibly fast 难以置信的快
core ML for machine learning
ARKit for augmented reality 增强现实

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值