我想获得UITextView for ios 8的高度,我尝试使用下面的代码但是高度值" 0.0000"
CGSize maximumLabelSize = CGSizeMake(280, FLT_MAX);
CGFloat expectedLabelSize = [label sizeThatFits:maximumLabelSize].height;
[label layoutIfNeeded];
[label updateConstraints];
NSLog(@"test height, %f", expectedLabelSize);