Created
August 3, 2012 14:35
-
-
Save haric/3248178 to your computer and use it in GitHub Desktop.
Different fonts in one label
This file contains hidden or 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
| CGContextRef context = UIGraphicsGetCurrentContext(); | |
| // ERASE BACKGROUND | |
| CGContextSetRGBStrokeColor(context, 0.0, 0.0, 0.0, 1.0); | |
| CGContextSetRGBFillColor(context, 0.0, 0.0, 0.0, 1.0); | |
| CGContextFillRect(context, rect); | |
| // DRAW TEXT | |
| [[UIColor whiteColor] set]; | |
| UIFont * font = [UIFont fontWithName:@"ArialMT" size:12]; | |
| [@"TEST String" drawAtPoint:CGPointMake(0,70) withFont:font]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment