关于UITableView的多选
UITableView只要界面有重新刷新都会触发- (UITableViewCell *)tableViewUITableView *)tableView cellForRowAtIndexPathNSIndexPath *)indexPath 这个函数。
当选中TableView中的某一行时,触发该函数:- (void)tableViewUITableView *)tableView didSelectRowAtIndexPath NSIndexPath *)indexPath 。
所以,要在UITableView中实现多选可以用可MAP来保存之前选过的行和对应行标题,在每次刷新时先检测MAP中是否有选中的行,如果有的话就可以置相应的状态。可以在didSelectRowAtIndexPath中先检测该行是否已被选中,如果已被选中的话可以取消选中状态。如果未被选中将该行信息插入到map中。