【iOS】1

时间:2014-06-14 08:32:55   收藏:0   阅读:266
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(320/2.0 - 140/2.0, 80, 140, 40)];
label.text = @"Hello World";
label.backgroundColor = [UIColor cyanColor];
label.textAlignment = NSTextAlignmentCenter;
[self.window addSubview:label];

bubuko.com,布布扣

【iOS】1,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!