2011-12-19 5 views

ответ

15

UITableView делегат просто должен реализовать:

- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath 
5

Реализовать

- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath 

И вернуть пользовательский заголовок для удаления.

От UITableViewDelegate Docs

0

Код:

*- (NSString *)tableView:(UITableView *)tableView 
titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath 
{ 
    return @"Rename"; // or put something else 
}* 
1

В Swift:

override func tableView(tableView: UITableView, titleForDeleteConfirmationButtonForRowAtIndexPath indexPath: NSIndexPath) -> String? { 
     return "Remove" 
    } 
+0

'FUNC Tableview (_ Tableview: UITableView, titleForDeleteConfirmationButtonForRowAt indexPath: IndexPath) -> Строка' в Swift? 3 – AppreciateIt

Смежные вопросы