Created
January 29, 2015 10:01
-
-
Save goshmx/94c5ce303a7996c3afec to your computer and use it in GitHub Desktop.
Redondear esquinas de un UIImageView Objetive C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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