Skip to content

Instantly share code, notes, and snippets.

@badlands
Created March 31, 2014 14:43
Show Gist options
  • Save badlands/9893949 to your computer and use it in GitHub Desktop.
Save badlands/9893949 to your computer and use it in GitHub Desktop.
UIImageView with rounded corners
// 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