首页 > 其他 > 详细

定制navigationBar

时间:2014-09-05 03:24:41      阅读:252      评论:0      收藏:0      [点我收藏+]

- (void)configureNavigationBar
{
    //设置navigationBar的颜色
    UILabel * titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, 40)];
    titleLabel.textColor = [UIColor whiteColor];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    titleLabel.text =@"通讯录";
    self.navigationItem.titleView = titleLabel;
    self.navigationController.navigationBar.barTintColor = [UIColor lightGreenColor];
    
    RELEASE_SAFE(titleLabel);
}

定制navigationBar

原文:http://qccccc.blog.51cto.com/6004423/1548895

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!