Created
January 8, 2014 16:34
-
-
Save mattyohe/8319719 to your computer and use it in GitHub Desktop.
UILabel that sizes in portrait and landscape
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation MYLabel | |
- (void)layoutSubviews | |
{ | |
self.preferredMaxLayoutWidth = self.frame.size.width; | |
[super layoutSubviews]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See: http://www.objc.io/issue-3/advanced-auto-layout-toolbox.html