I have a TextView inside a UITableViewCell. The text inside the TextView can be edited right there in place.
The TextView grows and shrinks vertically depending on the number of lines the text contains. So far I haven't found a possibility to also let the row containing the TextView grow and shrink dynamically.
[tableView reloadData];
or
[tableView reloadRowsAtIndexPaths: withRowAnimation:];
don't work, because they dismiss the keyboard on every change.
Is there a way to change height of an individual row in a UITableView without dismissing keyboard?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…