贪118万逃11年,八度网上论坛人妻,挂马检测
同样在rootviewcontroller.m文件中
- (void)viewdidload
下写了
//uilabel标签 显示一段文字 //创建一个标签 uilabel *label = [[uilabel alloc] initwithframe:cgrectmake(20, 100, 260, 300)]; //给标签加一个背景色 label.backgroundcolor = [uicolor greencolor]; //把标签添加到页面上 [self.view addsubview:label]; //标签的常用属性 label.text = @"这是一段话这是一段话这是一段话这是一段话这是一段话"; //居中 label.textalignment = nstextalignmentcenter; //文字的颜色 label.textcolor = [uicolor redcolor]; //文字的大小 //正常使用方式 label.font = [uifont systemfontofsize:30]; //加粗使用方式 //label.font = [uifont boldsystemfontofsize:30]; //填写字体得名称 //label.font = [uifont fontwithname:@"" size:30]; //阴影 label.shadowcolor = [uicolor yellowcolor]; label.shadowoffset = cgsizemake(2, 2); //设置行数 label.numberoflines = 4; //圆角 label.layer.cornerradius = 50; label.layer.maskstobounds = yes;
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
网友评论