定制navigationBar
- (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);
}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。