Skip to content

Instantly share code, notes, and snippets.

@danny005
Created May 17, 2015 18:27
Show Gist options
  • Save danny005/069451cbe13e1b8c5062 to your computer and use it in GitHub Desktop.
Save danny005/069451cbe13e1b8c5062 to your computer and use it in GitHub Desktop.
Support for "deleteButtonTitle" in Appcelerator Titanium ListView
#pragma mark - Editing Support Delegate Methods.
- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString * deleteButtonTitle = [self valueWithKey:@"deleteButtonTitle" atIndexPath:indexPath];
if (deleteButtonTitle == nil)
{
deleteButtonTitle = NSLocalizedString(@"Delete",@"Table View Delete Confirm");
}
return deleteButtonTitle;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment