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.
Guys for multiple selection you just need
on viewDidLoad and
Use the following code to set up the cell accesory types:
Jeff Lamarche has a tutorial on how to do this here:
http://iphonedevelopment.blogspot.com/2008/10/table-view-multi-row-edit-mode.html
I've not tried the code but it's been on the back of my mind for a while, knowing the day will come when I need it.
From the HIG:
You'll need to roll your own multiple selection style, either with something like Mail, or using the checkmark accessory on your cells.
Tested with iOS4.3 - 6.0
I backported
allowsMultipleSelectionDuringEditing
andallowsMultipleSelection
from iOS5 to older iOS. You can fork it at https://github.com/ud7/UDTableView-allowsMultipleSelectionIt's drop in replacement and only thing you need to do is change UITableView to UDTableView (in code or interface builder)