UITabBarController
2016-01-10 20:57
447 查看
UITabBarController
UITabBar
UITabBarItem
UITabBarController是UITabBar的控制器,这是一个很强大的控制器,在各大app中经常能够看见。
如上图所示的精品推荐、排行榜和探索等按钮就是一个UITabBar,它和UIToolBar很类似,都是处于屏幕的最下方,和UIToolBar不同的地方是它是系统级管理VC的,能够快速跳转到另一个分支的VC中。
UITabBarController Class Reference
GitHub:https://github.com/937447974/Blog
UITabBar
UITabBarItem
UITabBarController是UITabBar的控制器,这是一个很强大的控制器,在各大app中经常能够看见。
如上图所示的精品推荐、排行榜和探索等按钮就是一个UITabBar,它和UIToolBar很类似,都是处于屏幕的最下方,和UIToolBar不同的地方是它是系统级管理VC的,能够快速跳转到另一个分支的VC中。
1 Accessing the Tab Bar Controller Properties
/// 代理,监听相关跳转信息 weak public var delegate: UITabBarControllerDelegate? @available(iOS 3.0, *) /// 获取UITabBar public var tabBar: UITabBar { get }
2 Managing the View Controllers
/// 当前管理的所有UIViewController public var viewControllers: [UIViewController]? /// 是否动画设置[UIViewController] /// /// - parameter viewControllers : [UIViewController] /// - parameter animated: Bool /// /// - returns: void public func setViewControllers(viewControllers: [UIViewController]?, animated: Bool) /// 更多的导航界面 public var moreNavigationController: UINavigationController { get } /// 更多中显示的[UIViewController] public var customizableViewControllers: [UIViewController]?
3 Managing the Selected Tab
/// 选中的UIViewController unowned(unsafe) public var selectedViewController: UIViewController? /// 选中的UIViewController序号,从左到右[0,max] public var selectedIndex: Int
其他
源代码
Swift参考资料
UIKit Framework ReferenceUITabBarController Class Reference
文档修改记录
时间 | 描述 |
---|---|
2016-01-10 | 博文完成 |
版权所有
CSDN:http://blog.csdn.net/y550918116jGitHub:https://github.com/937447974/Blog
相关文章推荐
- 《leetCode》:Unique Binary Search Trees
- HDOJ 1242 Rescue
- UILable常用总结
- ios开发——UITextView展示txt电子书时的页数调整
- HDU 1242——Rescue(优先队列)
- Arduino外部中断使用与外部中断引脚资源
- iOS4 - UIPopoverController弹出窗口的位置和坐标(转载)-待整理
- 196,UITableView之cell增删移
- 闪客工具:HBuilder
- 简单三步通过Builder模式来实现Android顶部导航TopBar
- iOS -点击按钮查看大图,再次点击还原效果(此处以UITableViewCell为父视图,其中加载多个图片为例)
- UITextView,UITextField 和UIAlertView 在ios8上 当pop时候出现闪bug
- UITableViewCell三种自定义方式
- GUI中面板作为子容器,形成布局
- IOS 3D UI
- UITaleView 重用机制
- 百度编辑器Ueditor的简单调用
- Stack 栈 ----Queue 队列
- UItableView的headview视图有空白
- requirejs——config