TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
UILabel with multiple fonts and colors.
NZLabel works on iOS 5.0+ version and is compatible with ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates:
You will need LLVM 3.0 or later in order to build NZLabel.
Alternatively you can directly add source files to your project.
NZLabel
folder onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.#import "NZLabel.h"
...
UIFont *boldFont = [UIFont fontWithName:@"Helvetica-Bold" size:17];
UIColor *blackColor = [UIColor blackColor];
NSString *loren = @"Lorem";
NSString *ipsum = @"ipsum";
[self.labelBlack setBoldFontToString:loren];
[self.labelBlue setFontColor:blackColor string:ipsum];
[self.labelGreen setFont:boldFont string:ipsum];
[self.labelGreen setFontColor:blackColor string:ipsum];
This code is distributed under the terms and conditions of the MIT license.
A brief summary of each NZLabel release can be found on the wiki.