UITabBarItem
2016-01-11 14:53
351 查看
UITabBarController
UITabBar
UIBarItem
UITabBarItem
UITabBarItem就是UITabBar上显示的小按钮。
我们也可以定制系统UITabBarItem按钮,只需通过
UITabBarController Class Reference
GitHub:https://github.com/937447974/Blog
UITabBar
UIBarItem
UITabBarItem
UITabBarItem就是UITabBar上显示的小按钮。
我们也可以定制系统UITabBarItem按钮,只需通过
UITabBarItem.appearance()获取即可。
1 Initializing an Item
/// 通过标题、图片、tag初始化按钮 public convenience init(title: String?, image: UIImage?, tag: Int) /// 通过标题、默认图片和选中图片初始化按钮 @available(iOS 7.0, *) public convenience init(title: String?, image: UIImage?, selectedImage: UIImage?) /// 通过系统样式初始化按钮 public convenience init(tabBarSystemItem systemItem: UITabBarSystemItem, tag: Int)
2 Getting and Setting Properties
/// 未读消息的标记 public var badgeValue: String?
3 Customizing Appearance
/// 选中按钮的图片 @available(iOS 7.0, *) public var selectedImage: UIImage? /// 标题位置 @available(iOS 5.0, *) public var titlePositionAdjustment: UIOffset
Appendix
Related Documentation
UIKit Framework ReferenceUITabBarController Class Reference
Revision History
时间 | 描述 |
---|---|
2016-01-07 | 博文完成 |
Copyright
CSDN:http://blog.csdn.net/y550918116jGitHub:https://github.com/937447974/Blog
相关文章推荐
- UIBarButtonItem
- DbUils的数据库操作之版本更新
- 【转载】MQTT学习笔记——MQTT协议体验 Mosquitto安装和使用
- (UIPickerView)选择器的使用--相互依赖的多列选择器
- Performance Tuning guide 翻译 || Performance Tuning Guide 11G中新增特性
- 85.如何更改iOS上的UISearchBar组件的内部背景UITextField颜色 修改UISearchBar删除按钮ClearButton
- UIImage size压缩后图片下面出现白色线问题
- UILabel 的行间距
- 使用XIB自定义一个UIView,然后将这个view添加到controller的view 上(相当于所有界面都通过xib来实现)
- httpservletrequest paramater
- UIBarItem
- RequireJs的使用和快速理解
- UISearchDisplayController点击搜索时屏幕顶部出现黑条问题的解决方案
- 1.5.8 THE RAW REQUEST BODY(请求的主体部分)
- IOS开发UI篇--使用CAShapeLayer实现一个音量大小动态改变的控件
- UITableView
- 向字典中添加key-value
- UIImage 图片处理:截图,缩放,设定大小,存储
- UIImage 图片处理:截图,缩放,设定大小,存储
- UIAlertController