UItextView in UITableview, auto-correction bubble is invisible

I have a UITableView with custom cells. Cells containing one UITextView each and a cell are resized during user type text in TextView. My problem is that the user is on the first line in AutoCorrection, which will not be displayed in the current cell. Is there a way around the problem, or can someone point me in a different direction?

alt text http://img340.imageshack.us/img340/5414/skrmavbild20100519kl092.png

+3
source share
2 answers

If the cell is resized by the type of user, you can set the minimum height of the edited cell to have a sufficient height for the bubbles. Always measure the active cell as if there were at least two rows.

Each UIViewhas a property clipsToBoundsthat controls the contents of the user, can be moved outside. You may be able to set this value NOfor all views in the hierarchy between the bubble and the cell. This can have other side effects.

Also, make sure that the active cell has a higher order Z than neighboring cells. It may simply be that the next cell draws a bubble down, in contrast to the active cell that cuts the bubble.

+3
source

I offer you a "workaround"

. - > UITextView "" "".

0

Source: https://habr.com/ru/post/1746133/


All Articles