UIImageView 的圓角

imageThumbnail.image=[UIImage imageWithContentsOfFile:strPath]
imageThumbnail.layer.masksToBounds=YES
imageThumbnail.layer.cornerRadius=10.0
imageThumbnail.layer.borderWidth=1.0
imageThumbnail.layer.borderColor=[[UIColor grayColor] CGColor];

記得要 import <QuartzCore/QuartzCore.h>

留言

熱門文章