我想上传照片到twitter,facebook和twit图片等等。我把它放在数组中并显示在表格视图中。我正在使用shareKit。我编码就好像我选择了一个单元格(例如,Twitter),然后它将上传照片到Twitter我想选择多个单元格并在一个按钮上执行发送操作(发送到选定的行项目)。我能够标记/取消标记细胞,但如何获得选定的细胞值。我不希望它是在表的编辑模式..多个单元格选择在tableview
代码:
- (void) tableView:(UITableView *)atableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
if (cell.accessoryType == UITableViewCellAccessoryCheckmark) {
cell.accessoryType = UITableViewCellAccessoryNone;
}
else {
cell.accessoryType = UITableViewCellAccessoryCheckmark;
}
}
的HTTP重复:/ /stackoverflow.com/questions/308081/is-it-possible-to-configure-a-uitableview-to-allow-multiple-selection和http://stackoverflow.com/questions/3040894/uitableview-multiple-selection – 2011-05-12 05:55:40
@ IphoneDeveloper,如果你有正确的答案你为什么不给这个努力的加票? – 2012-01-03 04:51:29