To run the Xcode project; clone the repo, and run pod install
.
UIView+CustomFonts is available through CocoaPods, to install, simply add the following line to your Podfile:
pod "UIView+CustomFonts"
In your view controller, import the UIView category header file.
#import "UIView+CustomFonts.h"
Set the font family for the view in viewDidLoad
.
- (void)viewDidLoad
{
[super viewDidLoad];
[self.view setFontFamily:@"MuseoSans-500"];
}
The example use MuseoSans-500, a free font to use.
You also have to add the font to your project, and add it to info.plist.
Junda, junda@just2us.com
UIView+CustomFonts is available under the MIT license. See the LICENSE file for more info.