ios 将图片做成圆形

UIImageView * imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"oiuyfdsa.png"]];  
imageView.frame = CGRectMake(20.f, 20.f, 100.f, 100.f);  
imageView.layer.masksToBounds = YES;  
imageView.layer.cornerRadius = 50;  

 

posted on 2013-09-18 13:02  Hai_阔天空  阅读(289)  评论(0)    收藏  举报

导航