![]() |
EnkiUtils
Small library of classes that Enki Labs uses internally.
|
#import <UILabel+EnkiUtils.h>
Instance Methods | |
| (void) | - sizeToFitFixedWidth: |
The UILabel category extends UILabel so you can easily make a UILabel wrap multi-line text correctly.
Definition at line 16 of file UILabel+EnkiUtils.h.
| - (void) sizeToFitFixedWidth: | (CGFloat) | fixedWidth |
Resize a UILabel to correctly wrap the text to a width. Pass 0 if you want to wrap to the UILabel's frame width. Note, this is probably not what you want to do if you call it multiple times. Grab the original UILabel's width and stash it away somewhere or you'll find that your UILabel shrinks in width over time as you change the text.
Definition at line 15 of file UILabel+EnkiUtils.m.