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"]; Please help me with this problem. Thanks in advance. 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 // 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;
internalTextView.scrollEnabled = NO; If (newSizeH> = MaximumHight) internalTextView.scrollEnabled = Yes;
Comments
Post a Comment