Is it possible to configure a UITableView to allow multiple-selection?

Nick Cartwright picture Nick Cartwright · Nov 21, 2008 · Viewed 57.6k times · Source

For the iPhone, is it possible to configure a UITableView such that it will allow multiple-selection?

I've tried overriding -setSelected:animated: for each UITableViewCell, but trying to fudge the required behavior is tricky as it's difficult to separate the real unselections from the ones where the UITableView thinks I've unselected due to selection of another cell!

Hope someone can help!

Thanks,

Nick.

Answer

Hamdi picture Hamdi · Apr 2, 2012

Following property should work fine if you are developing app for iOS5.0+

self.tableView.allowsMultipleSelection = YES;