Wednesday, 13 June 2012

UIImage corner with border color

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