CocoaPods trunk is moving to be read-only. Read more on the blog, there are 12 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Jun 2015 |
Maintained by Thomas Baastrup Jacobsen.
Standard use with [sizeToFit]:
DSInsetLabel *myLabel = [DSInsetLabel new];
myLabel.edgeInsets = UIEdgeInsetsMake(10, 15, 10, 15);
myLabel.text = @"My text";
[myLabel sizeToFit];
[self.view addSubview:myLabel];To limit the width of the label just set the maxWidth property:
myLabel.maxWidth = 200;To run the example project, clone the repo, and run pod install from the Example directory first.
DSInsetLabel is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DSInsetLabel"Thomas Baastrup Jacobsen, [email protected]
DSInsetLabel is available under the MIT license. See the LICENSE file for more info.