ISVerticallyAlignedLabel is UILabel descendant with following features:
- vertical alignment;
- text insets.
Drag the ISVerticallyAlignedLabel folder into your project.
Set vertical alignment:
verticallyAlignedLabel.verticalAlignment = ISVerticalAlignmentTop;There are three options available:
ISVerticalAlignmentTopISVerticalAlignmentCenterISVerticalAlignmentBottom
Set text insets:
verticallyAlignedLabel.textInsets = UIEdgeInsetsMake(10, 10, 10, 10);iOS 6 with ARC
ISVerticallyAlignedLabel is available under the MIT license. See the LICENSE file for more info.