首页 > 其他 > 详细

图片圆角属性

时间:2014-12-09 00:18:28      阅读:293      评论:0      收藏:0      [点我收藏+]

    self.imageview=[[UIImageView alloc] init];

    self.imageview.frame=CGRectMake(100, 100, 100, 100);

 

    [self.view addSubview:self.imageview];

    self.imageview.layer.borderWidth=2;

    self.imageview.layer.borderColor=[UIColor whiteColor].CGColor;

    self.imageview.layer.masksToBounds=YES;

    self.imageview.layer.cornerRadius=10;

    self.imageview.image=[UIImage imageNamed:@"weibo"];

}

图片圆角属性

原文:http://www.cnblogs.com/zhibin/p/4152224.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!