Hi. What I am trying to do is like a chat/message system. When new message is added, the tableview inserts the new message and scrolls up.
My problem now is that after I insert the new message in the tableview, the tableview’s height doesn’t change.
What I did is below:
1> list all old messages in tableview. (data is stored in ‘myList’ var)
2> create new message,
3> add new message in ‘myList’.
3> tableview:removeAllRows()
4> tableview:insertNewData using ‘myList’.
5> tableview:scrollToY(y = 0-tableView.height …)
The problem now is in (5) tableView.height doesn’t change.
Also, is there a function that can scroll to the very bottom of the tableview? Currently, I am using (5) as listed above.