Я использую UITextView
, который будет расширяться, нажав кнопку "больше". Проблема заключается в следующем:
На iOS6 я использую это,
self.DescriptionTextView.text = @"loong string";
if(self.DescriptionTextView.contentSize.height>self.DescriptionTextView.frame.size.height) {
//set up the more button
}
Проблема в том, что на iOS7 contentSize.height
возвращает другое значение (намного меньше), чем значение, которое оно возвращает на iOS6.
Почему это? Как это исправить?