some questions about uitextview in a uitableviewcell+scrolling
Hi,
I succeed in using a uitextview in a uitableviewcell, with the cell that grows as user enters text.
But I have some related problems or bad effects:
1. When I reload the content of the textview, I have to set the textview content in viewDidAppear, so I see the text appear and, if the text is long, the table scrolling to the end. I wouldn't this scrolling effect.
2. When the user taps a not empty textview, I lose the cursor, because all the tableview scrolls up, resizing itself in height and filling the part not covered by the keyboard (I do this 'cause I've display a label above the keyboard).
How could I scroll to cursor such that it becomes visible?
3. The uitableviewcell grows together with the text. I would to have the text more "centered" in the visible part, that is with at least one empty line under it. In this way, the suggestion bubble doesn't compare above the text but down. Moreover the user don't write near the top margin of the keyboard.
I've tried setting the contentInset or playing with the height, but nothing.
Any suggestion/idea?
Thanks,
Fran
|