2013年6月28日

UILabel 常用属性(转)

摘要: //创建uilabelUILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(20, 40, 280, 80)];//设置背景色label1.backgroundColor = [UIColor grayColor];//设置taglabel1.tag = 91;//设置标签文本label1.text = @"Hello world!";//设置标签文本字体和字体大小label1.font = [UIFont fontWithName:@"Arial" size:30];//设置文本对其方式 阅读全文

posted @ 2013-06-28 16:59 许木木 阅读(272) 评论(0) 推荐(0) 编辑

导航