效果图:
images/loading.gif' data-original="http://images.cnitblog.com/blog2015/337518/201503/111444518708704.jpg" />
代码:
- (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;}
原标题:导航条的标题
关键词: