**@導航欄新不同**
1.控制器視圖默認全屏顯示,導航欄的不同設置會帶來不一樣的效果
2.導航欄的顏色設置為新增屬性:barTintColor
3.導航欄的屬性:tintColor用于設置控件顏色
4.導航欄背景圖片不同的size會展示不同的效果
5.導航欄中設置控件的image對象都需要進行渲染設置.默認是渲染為模板,需要渲染為原圖才能顯示.默認是渲染為模板,需要渲染為原圖才能顯示
**@導航欄外觀**
1.bar的樣式 ? ? ? ? ? ? ?barStyle
2.bar的透明度 ? ? ? ? ?translucent
3.bar的顏色 ? ? ? ? ? ? ?barTintColor
4.bar上控件的顏色 ?tintColor
5.bar的背景圖片 ? ? ?backgroundImage
**@導航欄布局**
1.iOS6和iOS7中,導航欄的布局都是(0,0,320,44)
2.iOS6中,導航欄的背景視圖的布局是(0,0,320,44) 和導航欄的布局是一樣的
3.iOS7中,導航欄的背景視圖的布局是(0,-20,320,64),y軸定位到-20px,高度增加到64px,包含狀態欄和導航欄
4.通過設置控制器的 edgesForExtendedLayout 為 UIRectEdgeNone,也可以將控制器視圖從導航欄下顯示(iOS7新增的屬性)
**@導航欄內容(新增)**
1.返回按鈕(Back)指示圖像 ? ? ?UIImage *backIndicatorImage ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
? ? self.navigationController.navigationBar setBackIndicatorImage:
2.返回按鈕(Back)遮罩圖像 ? ? ?UIImage *backIndicatorTransitionMaskImage ? ? ? ? ?
? ? [self.navigationController.navigationBar setBackIndicatorTransitionMaskImage:
@UIBarButtonItem
1.初始化變化:
? ?~ - (id)initWithBarButtonSystemItem:(UIBarButtonSystemItem)systemItem target:(id)target action:(SEL)action;
? ? ? ? ?系統提供樣式改變
? ?~ - (id)initWithTitle:(NSString?*)title style:(UIBarButtonItemStyle)style target:(id)target action:(SEL)action;
? ? ? ? ?style設置為 UIBarButtonItemStylePlain(必須)
? ?~ - (id)initWithImage:(UIImage?*)image style:(UIBarButtonItemStyle)style target:(id)target action:(SEL)action;
? ? ? ? ?圖像需要進行渲染,因為默認渲染是成模板
? ? ? ? ?- (UIImage?*)imageWithRenderingMode:(UIImageRenderingMode)renderingMode?NS_AVAILABLE_IOS(7_0);
? ? ? ? ?typedef?NS_ENUM(NSInteger, UIImageRenderingMode) {
? ? ? ? ? ? ? ?UIImageRenderingModeAutomatic,? ? ? ? ??// Use the default rendering mode for the context where the image is used
? ? ? ??? ? ? ?UIImageRenderingModeAlwaysOriginal, ? ??// 渲染為原始圖片
? ? ? ? ? ? ? ?UIImageRenderingModeAlwaysTemplate, ? ??// 渲染為模板
? ? ? ? ?}?NS_ENUM_AVAILABLE_IOS(7_0);
- 前言
- UITableView詳解(UITableViewCell(一)重中之重)
- UITableView詳解(UITableViewCell(二) 自定義cell)
- UITableView詳解(UITableViewCell(三) cell根據文本長度來自動調整cell高度)
- UITableView詳解(UITableViewCell(四) 增加 刪除 移動)
- UITabBarController詳解(一)UITabBarController的介紹和設置(偷了點懶,直接用了ARC)
- UITabBarController詳解(二)UITabBarController的代理方法以及模態顯示
- UISearchBar詳解(一)基本屬性
- UISearchBar詳解(二)數據刷選類:NSPredicate
- UISearchDisplayController 的使用
- UINavigationController詳解(一)
- UINavigationController詳解(二)UINavigationBar(UIBarButtonItem)
- UINavigationController詳解(三)UIToolBar
- UINavigationController詳解(四)iOS7新特性
- UIScrollView控件詳解
- UISwitch用法-以及-自定義UISwitch控件
- UIAlertView用法
- UILabel 的常見屬性和方法:
- UIPickerView(滾動選擇控制器)
- UIActivityIndicatorView(活動指示器 ---------> 網絡卡后加載,畫面,圖像加載閃爍的圓圈)
- UIStepper
- UIImagePickerController--------圖片選取器
- UITextView
- UITabBarController詳解(三)自定義UITabBarController
- UIWebView基本介紹