你的位置:首页 > 软件开发 > 操作系统 > 导航条的标题

导航条的标题

发布时间:2015-03-11 16:00:22
效果图: 代码:- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self. ...

导航条的标题

 

效果图:

 

导航条的标题

 

代码:

- (void)viewDidLoad {  [super viewDidLoad];  // Do any additional setup after loading the view, typically from a nib.    [self.view addSubview:[self getTileLabel:@"你好!"]];}//导航条的标题-(UILabel *)getTileLabel:(NSString *)title{    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 100 , 200, 44)];  titleLabel.backgroundColor = [UIColor redColor];  titleLabel.font=[UIFont boldSystemFontOfSize:18];  titleLabel.textColor=[UIColor greenColor];  titleLabel.textAlignment = NSTextAlignmentCenter;  titleLabel.text=title;  return titleLabel;}

原标题:导航条的标题

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录