Last active
August 29, 2015 13:56
-
-
Save linusthe3rd/9039696 to your computer and use it in GitHub Desktop.
UIKit Corner Radius
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
#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