iOS 7 导航栏颜色设定与适配

iOS7 设置navigationBar的颜色,新增了一个属性 barTintColor

    CGFloat osVersion = [[UIDevice currentDevice].systemVersion floatValue];
    if (osVersion >= 7.0) {
        rootNa.navigationBar.barTintColor = [UIColor redColor];
    }
    else
    {
        rootNa.navigationBar.tintColor = [UIColor redColor];
 
    }

  

 

posted @ 2013-10-23 11:32  cocoajin  阅读(400)  评论(0编辑  收藏  举报