[UIKit学习]03.关于UILable

代码创建UILabel

    UILabel *label = [[UILabel alloc] init];

    label.text = @"单肩包";

    label.frame = CGRectMake(0, 50, 50, 20);

    label.font = [UIFont systemFontOfSize:11];

    label.textAlignment = NSTextAlignmentCenter;

posted @ 2016-02-29 10:30  zhangjing022  阅读(107)  评论(0编辑  收藏  举报