//标题:红包大厅 UILabel* tmp_title=[[UILabel alloc] initWithFrame:CGRectMake(0 , 5, max_View.frame.size.width, 24)]; tmp_title.text=@"进入红包大厅"; [tmp...
分类:
其他好文 时间:
2015-12-30 10:34:00
阅读次数:
180
CALayers 是屏幕上的一个具有可见内容的矩形区域,每个UIView都有一个根CALayer,其所有的绘制(视觉效果)都是在这个layer上进行的。可以下面的代码去验证!UILabel*lable=[[UILabel alloc]initWithFrame:CGRectMake(0, 0, 10...
分类:
其他好文 时间:
2015-12-29 15:57:16
阅读次数:
242
原创文章,欢迎转载。转载请注明:翟乃玉的博客
地址:http://blog.csdn.net/u013357243如图问题如图是我要做的效果然而当我写好代码后,设置号label的layer圆角后是这样的
崩溃。。解决百度后知道解决方法,原来少了一行代码 cell.textLabel.text = @"检查更新";
UILabel *label...
分类:
移动开发 时间:
2015-12-29 14:41:29
阅读次数:
199
继承于UIView创建UIView对象后,可设置其属性1.label的颜色 label.backgroundColor = [UIColor redColor];2.给label添加文字 label.text = @"我的博客";3.设置字体颜色 label.textColor = [UIColor...
分类:
其他好文 时间:
2015-12-26 16:35:44
阅读次数:
149
1 #import "ViewController.h" 2 3 @interface ViewController () 4 { 5 UILabel *lable; 6 BOOL moveFlag; 7 NSInteger length; 8 UIButton ...
分类:
移动开发 时间:
2015-12-25 20:42:30
阅读次数:
237
1 #import "ViewController.h" 2 3 @interface ViewController () 4 5 // 标题标签 6 @property (strong, nonatomic) UILabel *titleLablel; 7 // 分段控制器 ...
分类:
移动开发 时间:
2015-12-25 20:40:10
阅读次数:
238
详细使用: UILabel *label = [[UILabelalloc] initWithFrame:CGRectMake(0, 0, 75, 40)]; //声明UIlbel并指定其位置和长宽 label.backgroundColor = [UIColorclearColor]; //设置....
分类:
移动开发 时间:
2015-12-25 11:44:17
阅读次数:
350
CGFloat width1=[(NSString *)ob1 sizeWithFont:[UIFont systemFontOfSize:16] constrainedToSize:CGSizeMake(1000, FONTHEIGHT)].width;转CGFloat width1=[(NSSt...
分类:
其他好文 时间:
2015-12-24 22:07:00
阅读次数:
265
1 // 标签UILable -显示文字 2 // 1.创建标签 3 UILabel *lable = [[UILabel alloc] init]; 4 // 2.设置标签的坐标和大小 5 [lable setFrame:CGRectMake(0,20, ...
分类:
移动开发 时间:
2015-12-23 14:17:03
阅读次数:
171
1、使用这个类,必须先导入CoreText框架。2、给UILabel设置attributedText了会导致给UILabel中text,font,textColor,shadowColor,shadowOffset,textAlignment,lineBreakMode这7个属性设置值时无效果。3、...
分类:
其他好文 时间:
2015-12-23 10:42:07
阅读次数:
163