save selected row in UITableView after reloadData
Posted
by vinnitu
on Stack Overflow
See other posts from Stack Overflow
or by vinnitu
Published on 2009-12-01T16:06:19Z
Indexed on
2010/05/26
1:01 UTC
Read the original article
Hit count: 447
iphone-sdk
|gui
I write custom jabber client in iphone.
I use xmppframework as engine.
And I have UITableViewController with NSMutableArray for repesent contact list.
When i receive(or somebody change it contents) roster (aka contact list) i wanna change UITableView items (add/remove/modify). So if User work with listView at time when list updates by
[items addObject:newItem];
[self.tableView reloadData];
user lost current selection item.
So, my question is howto save (if possible, i mean if given selected item not removed) current select item after reloadData?
Thx.
© Stack Overflow or respective owner