Skip to content

Repository files navigation

UIView+CustomFonts

Version Platform

Usage

To run the Xcode project; clone the repo, and run pod install.

Installation

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.

Author

Junda, junda@just2us.com

License

UIView+CustomFonts is available under the MIT license. See the LICENSE file for more info.

Bitdeli Badge

About

Change font family without changing the size

Resources

Stars

7 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages