navigationBar 背景色

 if ([[[UIDevice currentDevice]systemVersion]floatValue] >= 7.0) {
        [[UINavigationBar appearance] setBarTintColor:[UIColor colorWithHexString:@"0b6aff"]];
    }
    else
    {
        self.navigationBar.tintColor = [UIColor colorWithHexString:@"0b6aff"];
    }

 

posted @ 2014-03-28 10:36  菜鸟程序猿  阅读(223)  评论(0)    收藏  举报