开发者

How to autoscroll tableview when a new value is added to it

In my iphone app, i have a textbox and a table view.I add the item from textbox and it is added to the tableview.

I want that as I add a new item to tableview then it should autoscroll by one position so that the newly added item gets displayed at the bottom of the tableview.

How can we do this?

Please Help and Suggest

开发者_运维百科

Thanks


you can call the UITableView's

- (void)scrollToRowAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UITableViewScrollPosition)scrollPosition animated:(BOOL)animated

with the indexPath set to your newly added row.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜