导航栏设置


    //设置导航条按钮的颜色
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    
    //设置navigationBar背景透明
    [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
    //覆盖navigationBar底部的黑色线(黑色阴影)
    [self.navigationController.navigationBar setShadowImage:[UIImage new]];
//一个布尔值,指示是否导航栏是半透明的(YEStrue)(NOfalse)
@property(nonatomic,assign,getter=isTranslucent) BOOL translucent NS_AVAILABLE_IOS(3_0) UI_APPEARANCE_SELECTOR; // Default is NO on iOS 6 and earlier. Always YES if barStyle is set to UIBarStyleBlackTranslucent

网页链接

丝滑的侧滑返回

你可能感兴趣的:(导航栏设置)