CALayer * l = [imageViewRotateBg layer];
[l setMasksToBounds:YES];
[l setCornerRadius:10.0];
// You can even add a border
[l setBorderWidth:1.5];
[l setBorderColor:[[UIColor darkGrayColor] CGColor]];
imageView.image = [UIImage imageNamed:@"myImage"];
No comments:
Post a Comment