您的位置:首页 > 移动开发 > IOS开发

ios 导航栏设置

2014-04-14 09:41 281 查看
[self.navigationController.navigationBar setTintColor:[UIColor whiteColor]];

UILabel *titleText = [[UILabel alloc] initWithFrame: CGRectMake(160, 0, 160, 60)];
titleText.backgroundColor = [UIColor clearColor];
titleText.textColor=[UIColor whiteColor];
titleText.font = [UIFont fontWithName:@"Helvetica" size:19];
titleText.textAlignment=NSTextAlignmentCenter;
[titleText setText:@"通知"];
self.navigationItem.titleView=titleText;

[self.navigationController.navigationBar setBackgroundImage: [UIImage imageNamed:@"Head.png"] forBarMetrics:UIBarMetricsDefault];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: