sizeWithFont: constrainedToSize: with UITextView is (sometimes) not creating correct height - iPhone
问题 I am using the following code to determine the height needed for a UITextView that is being added to a UITableViewCell , and also to determine the height for each UITableViewCell . This works 90% of the time, but some incoming data (always the same incoming data) comes up short. If I allow scrolling within the UITextView , I can see that all the text is in the UITextView - but the UITextView does not have enough height to display all the text. There does not appear to be anything wrong with