2012年10月11日

圆角处理

摘要: 方法1:UIImageView *view2=[[UIImageView alloc]initWithImage:tempImage];view2.layer.cornerRadius=6;view2.layer.masksToBounds=YES;方法2: 1 static void addRoundedRectToPath(CGContextRef context, CGRect rect, float ovalWidth, 2 float ovalHeight) 3 { 4 float fw,fh; 5 if (ovalWidth == 0 || ova... 阅读全文

posted @ 2012-10-11 12:58 ThanTheSun 阅读(81) 评论(0) 推荐(0)

导航