您的位置:首页 > 移动开发 > IOS开发

iOS 圆形图片

2016-01-22 18:56 543 查看
UIImageView *images = [[UIImageView alloc]initWithFrame:CGRectMake(100, 100, 200, 200)];
images.backgroundColor = [UIColor redColor];
images.image = [UIImage imageNamed:@"1213"];
images.layer.masksToBounds = YES;
images.layer.cornerRadius = CGRectGetHeight(images.bounds)/2;
images.layer.borderWidth = 2.0f;
images.layer.borderColor = [[UIColor lightGrayColor]CGColor];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: