2015-04-10 13 views

Odpowiedz

12

usunąć Tak, wdrożyć funkcję UITableViewDelegate:

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

titleForDeleteConfirmationButtonForRowAt delegat obecny w UITableViewDelegate może być użyty do zmiany tekstu "Usuń" w komórce widoku tabeli.

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