Я хочу преобразовать NSIndexPath
на NSString
. Как мне это сделать?
Я должен использовать это:
- (void)restClient:(DBRestClient*)client uploadedFile:(NSString*)sourcePath
{
[client deletePath:@"/objc/boston_copy.jpg"];
}
внутри метода commitEditingStyle, где я получаю только NSIndexPath
в качестве входных данных.
- (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];
}