push是定义的一个button push.layer.masksToBounds = YES; push.layer.cornerRadius = 100; push.layer.borderWidth = 10; push.layer.borderColor = [[UIColor b...
分类:
移动开发 时间:
2014-11-05 14:28:12
阅读次数:
157
[objc] view plaincopy在CODE上查看代码片派生到我的代码片 为了确认设置imageView.layer.masksToBounds = YES后,外面的view是否消失,改用了UIButton来验证.结果是存在的. [objc] view plaincopy在CODE上...
分类:
其他好文 时间:
2014-11-04 09:10:29
阅读次数:
113
有时候我们需要把图片、textview等view设置成圆角:需要Core Graphics框架头文件:#importcode:view.layer.borderWidth=1;view.layer.cornerRadius=6;view.layer.masksToBounds=YES;
分类:
其他好文 时间:
2014-08-21 22:29:25
阅读次数:
189
UIView *v=[[UIView alloc]initWithFrame:CGRectMake(10, 10, 100, 100)]; v.backgroundColor=[UIColor yellowColor];//v.layer.masksToBounds=YES;这行去掉 v.layer...
分类:
移动开发 时间:
2014-08-14 16:09:28
阅读次数:
253
//@mg:masksToBounds必须为NO否者阴影没有效果// cell.layer.masksToBounds = NO; cell.layer.contentsScale = [UIScreen mainScreen].scale; cell.layer.shad...
分类:
其他好文 时间:
2014-07-28 14:28:23
阅读次数:
431
//1.创建图片 _userImage = [[UIImageView alloc]init]; //2.设置图片圆角 _userImage.layer.cornerRadius = 33; _userImage.layer.masksToBounds = YES;...
分类:
其他好文 时间:
2014-07-16 11:54:28
阅读次数:
171
UIImageView自带//圆角设置imageView.layer.cornerRadius = 8;(值越大,角就越圆)imageView.layer.masksToBounds = YES;//边框宽度及颜色设置[imageView.layer setBorderWidth:2];[image...
分类:
移动开发 时间:
2014-07-16 00:39:18
阅读次数:
318
导入库头文件(重点)#import //圆角设置imageView.layer.cornerRadius = 6;imageView.layer.masksToBounds = YES;//边框宽度及颜色设置[imageView.layer setBorderWidth:2];[imageView....
分类:
移动开发 时间:
2014-07-14 22:13:29
阅读次数:
262
用代码实现图片加圆角:
iconView.layer.masksToBounds = YES;
iconView.layer.cornerRadius = 3;...
分类:
移动开发 时间:
2014-06-22 18:38:38
阅读次数:
298
自定义的tabbaritem图片比系统的高出一截来Solution:self.tabbar.tabBar.layer.masksToBounds=YES;//边界隐藏但是由于设置masksToBounds属性为true所以Layer的阴影效果也就没有了
分类:
其他好文 时间:
2014-05-24 15:32:32
阅读次数:
179