Skip to content

UILabel Category adjust the Font automatically to fit the size

License

Notifications You must be signed in to change notification settings

carabina/FTFontLabelCategory

Repository files navigation

FTFontLabelCategory

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage:

#import "UILabel+FTFontLabel.h"

UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 50, 300, 100)];
label.text = @"ABC-123";
[label fontToFit];
[self.view addSubview:label];

Installation

FTFontLabelCategory is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'FTFontLabelCategory'

Author

johnsongs, johnson_gs@live.cn

License

FTFontLabelCategory is available under the MIT license. See the LICENSE file for more info.

About

UILabel Category adjust the Font automatically to fit the size

Resources

License

Stars

Watchers

Forks

Packages

No packages published