EnkiUtils
Small library of classes that Enki Labs uses internally.
 All Classes Functions Properties Pages
UILabel(EkniUtils) Category Reference

#import <UILabel+EnkiUtils.h>

Instance Methods

(void) - sizeToFitFixedWidth:
 

Detailed Description

Author
BadPirate http://stackoverflow.com/questions/406212/sizing-a-uilabel-to-fit

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.

Method Documentation

- (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.


The documentation for this category was generated from the following files: