Latest 1.0.0
Homepage https://github.com/samwize/UIView-CustomFonts
License MIT
Platforms ios 5.0, requires ARC
Authors

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, [email protected]

License

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

Bitdeli Badge

Latest podspec

{
    "name": "UIView+CustomFonts",
    "version": "1.0.0",
    "summary": "Change font family without changing the size",
    "description": "                       One line of code to change a custom font for a view, and also it's subviewsnn                       Affects these views:n                       * UILabeln                       * UIButtonn                       * UITextFieldn                       * UITextViewn",
    "homepage": "https://github.com/samwize/UIView-CustomFonts",
    "license": "MIT",
    "authors": {
        "Junda": "[email protected]"
    },
    "source": {
        "git": "https://github.com/samwize/UIView-CustomFonts.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/samwize",
    "platforms": {
        "ios": "5.0"
    },
    "requires_arc": true,
    "source_files": "Classes/*.{h,m}"
}

Pin It on Pinterest

Share This