Created
May 17, 2015 18:27
-
-
Save danny005/069451cbe13e1b8c5062 to your computer and use it in GitHub Desktop.
Support for "deleteButtonTitle" in Appcelerator Titanium ListView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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