我试图从我的保管箱中删除文件。我已经实现了滑动删除行为。这个“滑动删除”仅从tableView删除文件。下次我上传时,我可以看到'已删除'的文件,当我在我的PC上查看我的保管箱帐户时,这些文件也不会被删除。即使在文件从tableView中消失后,它们也会一直存在。无法从Dropbox中删除文件(来自iPhone应用程序)
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {
return UITableViewCellEditingStyleDelete;
}
- (void)tableView:(UITableView *)aTableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath :(NSIndexPath *)indexPath {
[self.itemArray removeObjectAtIndex:indexPath.row];
[aTableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0]withRowAnimation:UITableViewRowAnimationFade];
}
一些代码如何? – Eimantas 2011-05-11 06:01:09
完成,添加代码。请检查。 – Namratha 2011-05-11 06:54:40
我没有看到任何删除dropbox内容的代码 – visakh7 2011-05-11 06:57:31