2015-04-10 16 views

Antwort

12

löschen, um die Funktion von UITableViewDelegate implementieren:

func tableView(tableView: UITableView, titleForDeleteConfirmationButtonForRowAtIndexPath indexPath: NSIndexPath) -> String! { 
     return "your string" //or customize for each indexPath 
} 
0

titleForDeleteConfirmationButtonForRowAt Delegaten in UITableViewDelegate kann verwendet werden, um den Text von 'Löschen' in der Tabellenansicht Zelle zu ändern.

func tableView(_ tableView: UITableView, titleForDeleteConfirmationButtonForRowAt indexPath: IndexPath) -> String? { 
    return NSLocalizedString("erase".localized, comment: "") 
} 
Verwandte Themen