Created
March 31, 2014 14:43
-
-
Save badlands/9893949 to your computer and use it in GitHub Desktop.
UIImageView with rounded corners
This file contains 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
// Try this Code For Round Image Import QuartzCore framework simple way to create Round Image | |
// http://stackoverflow.com/questions/7705879/ios-create-a-uiimage-or-uiimageview-with-rounded-corners | |
UIImageView *imageView; | |
imageView.layer.backgroundColor=[[UIColor clearColor] CGColor]; | |
imageView.layer.cornerRadius=20; | |
imageView.layer.borderWidth=2.0; | |
imageView.layer.masksToBounds = YES; | |
imageView.layer.borderColor=[[UIColor redColor] CGColor]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment