Skip to content

Instantly share code, notes, and snippets.

@Bayonetta
Created February 8, 2014 08:07
Show Gist options
  • Save Bayonetta/8878374 to your computer and use it in GitHub Desktop.
Save Bayonetta/8878374 to your computer and use it in GitHub Desktop.
add cornerRadius
//kindofClass:view must be UIView or subclass of UIView
UIView *view = [[UIView alloc]init];
view.layer.masksToBounds = YES;
view.layer.cornerRadius = 5;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment