/ Published in: Objective C

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
CGSize maximumSize = CGSizeMake(300, 9999); UIFont *dateFont = [UIFont fontWithName:@"Helvetica" size:14]; CGSize dateStringSize = [dateString sizeWithFont:dateFont constrainedToSize:maximumSize lineBreakMode:self.dateLabel.lineBreakMode]; CGRect dateFrame = CGRectMake(10, 10, 300, dateStringSize.height); self.dateLabel.frame = dateFrame;
URL: http://stackoverflow.com/questions/1054558/uilabel-vertical-alignment
Comments
