UITextView text is missing when adjust frame according to text in iOS7? -


Hi I'm trying to set UITextView height according to the content. Its work is fine to adjust the frame of UITextView.

But the text has gone missing as the image shown is like the one below. It is only in iOS 7, displayed in iOS 6 well if I tap on the text view, then I have started writing textview completely.

I have code notes in the flight.Text = [Edit objectForcowi: @ "Notes"]; // Adjust the frame according to the text CGSize size = [NotesFile size thatFits: CGSizeMake (notesField.frame.size.width, FLT_MAX)]; CGRect Frame = notesField.frame; Float difference = size.height - frame.height.height; Frame.ize.height = size.height; Notefield.fr = frames;

Please help me with this problem. Thanks in advance. Enter image details here

A few days ago, I was struggling with the same problem and I got the solution with the Reset of the Property Scroll. The following is my code snippet

  internalTextView.scrollEnabled = NO; If (newSizeH> = MaximumHight) internalTextView.scrollEnabled = Yes;    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -