Font for button names in editActionsForRowAtIndexPath

Firstly, it would be nice if someone from the 1500 reputation created a new tag for UITableViewRowAction

I do not have this privilege.

using xcode version 6.1

I am currently using Apple's recent actions to edit UITableViewCells, as shown below:

-(NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewRowAction *deleteButton = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"Delete" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath)
                                {
                                    NSManagedObjectContext *context = [self.fetchedResultsController managedObjectContext];
                                    [context deleteObject:[self.fetchedResultsController objectAtIndexPath:indexPath]];
                                }];
deleteButton.backgroundColor = [UIColor redColor]; 

UITableViewRowAction *saveButton = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@" Save " handler:^(UITableViewRowAction *action, NSIndexPath *indexPath)
                                 {
                                     [self moreActions:self];
                                 }];
saveButton.backgroundColor = [UIColor colorWithRed:0.188 green:0.514 blue:0.984 alpha:1]; 
return @[deleteButton, saveButton];
}

However, the font attribute for the button name or at least from my research does not exist.

The Documentation and API Reference document only lists custom options for style, title (NSString), backgroundColor, or backgroundEffect.

I was able to programmatically change other classes with the example below, but did not get results with UITableViewRowActions:

[[UIBarButtonItem appearanceWhenContainedIn:[UISearchBar class], nil] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                                                                                              [UIColor whiteColor],
                                                                                              NSForegroundColorAttributeName,
                                                                                              nil]
                                                                                    forState:UIControlStateNormal];

, . , , tableView, iOS 8 , ?

, ? , ?

+4

All Articles