I am using an UITextView
that will be expandable by taping a "more" button. The problem is the following:
On iOS6 I use this,
self.DescriptionTextView.text = @"loong string";
if(self.DescriptionTextView.contentSize.height>self.DescriptionTextView.frame.size.height) {
//set up the more button
}
The problem is that on iOS7 the contentSize.height
returns a different value (far smaller) than the value it returns on iOS6.
Why is this? How to fix it?