Change font family without changing the size
Objective-C Ruby Shell C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Classes
Fonts
Pods
UIView+CustomFonts.xcodeproj
UIView+CustomFonts
UIView+CustomFontsTests
.gitignore
CHANGELOG.md
LICENSE
README.md
Rakefile
UIView+CustomFonts.podspec

README.md

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