开发者

Change text of a specific row in uitableview?

Is it some how possible to update text of a specific row in uitableview. like for example I have 3 rows 开发者_开发问答A B C . and now I would like to add another row to the table like row with D I know you can do it with reloading the table but that would take a lot of time (there is alot of data to be put in). so is it possible without reloading the entire table.

thanks, Tushar Chutnai


Try this method of UITableView class:

- (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;

source


Use either:

insertRowsAtIndexPaths:withRowAnimation:

OR

insertSections:withRowAnimation:

depending on your type of table.

Read the Apple developer's documentation on UITableView class here and check out the Instance Methods section in that. Should solve your troubles.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜