Skip to content

Instantly share code, notes, and snippets.

@linusthe3rd
Last active August 29, 2015 13:56
Show Gist options
  • Save linusthe3rd/9039696 to your computer and use it in GitHub Desktop.
Save linusthe3rd/9039696 to your computer and use it in GitHub Desktop.
UIKit Corner Radius
#import "YourViewController.h"
#import <QuartzCore/QuartzCore.h> // required to modify the corner radius
//.....Setup your controller...
- (void)viewDidLoad {
[super viewDidLoad];
self.myView.layer.cornerRadius = 8; //add a corner radius to the UILabel
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment