1.navigationController.hidesBarsOnSwipe = Yes;//scrollview上下滾動時隱藏導(dǎo)航欄
2.[[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60)?forBarMetrics:UIBarMetricsDefault];//消除導(dǎo)航視圖返回鍵自帶的title
3.將導(dǎo)航欄變成透明而不模糊
[self.navigationController.navigationBar setBackgroundImage:[UIImage new]
forBarMetrics:UIBarMetricsDefault];
self.navigationController.navigationBar?.shadowImage?=?[UIImage new];
self.navigationController.navigationBar?.translucent?=?YES;
4.拉伸圖片不變形
[[UIImage imageNamed:@""] stretchableImageWithLeftCapWidth:10 topCapHeight:10];
[[UIImage?imageNamed:@""]?resizableImageWithCapInsets:UIEdgeInsetsMake(10,?10,?10,?10)];
5.使用FLAnimatedImage框架進行GIF圖片的顯示以及優(yōu)化贞间。github地址https://github.com/Flipboard/FLAnimatedImage
6.使用xib加載的view,view大小默認(rèn)是600*600的蠢笋。如果要達到期望的尺寸梨睁,要在獲得view實例后,手動設(shè)置frame。
7._cmd ?代表當(dāng)前方法的名稱关划,即selector