Skip to content

Instantly share code, notes, and snippets.

@linusthe3rd
Created November 12, 2010 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linusthe3rd/673665 to your computer and use it in GitHub Desktop.
Save linusthe3rd/673665 to your computer and use it in GitHub Desktop.
YourViewController.m
#import "YourViewController.h"
#import <QuartzCore/QuartzCore.h> //required to achieve corner radius
//.....Setup your controller...
- (void)viewDidLoad {
[super viewDidLoad];
//add a corner radius to the UILabel
self.label.layer.cornerRadius = 8;
}
//....the rest of your controller code goes here...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment