在iPhone应用的导航栏添加自定义标题
<span style="font-size:18px;">在 iPhone 应用的导航栏添加自定义标题
在开发中经常会用到导航器,在导航器中添加标题很简单,如下:
self.title=@"Elimination phase Day 1";
UILabel *titleText = [[UILabel alloc] initWithFrame: CGRectMake(0, 0, 200, 20)];
titleText.backgroundColor = [UIColor clearColor];
[titleText setFont:[UIFont systemFontOfSize:15.0]];
[titleText setText:@"Elimination phase Day 1"];
self.navigationItem.titleView=titleText;
[titleText release]; </span>
摘自 计算机学习村落
补充:移动开发 , IOS ,