Skip to content

Instantly share code, notes, and snippets.

@goshmx
Created January 29, 2015 10:01
Show Gist options
  • Save goshmx/94c5ce303a7996c3afec to your computer and use it in GitHub Desktop.
Save goshmx/94c5ce303a7996c3afec to your computer and use it in GitHub Desktop.
Redondear esquinas de un UIImageView Objetive C
UIImageView * roundedView = [[UIImageView alloc] initWithImage: [UIImage imageNamed:@"test.jpg"]];
CALayer * l = [roundedView layer];
[l setMasksToBounds:YES];
[l setCornerRadius:10.0];
// Agregar borde y color(opcional)
[l setBorderWidth:4.0];
[l setBorderColor:[[UIColor blueColor] CGColor]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment