2011-12-19 23 views

答えて

15

のUITableViewのデリゲートは、単に実装することがあります。

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

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

を実装し、削除のためのカスタムのタイトルを返します。

UITableViewDelegateからドキュメント

0

コード:スウィフトで

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

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

'FUNCのにtableView(_のtableView:のUITableView、titleForDeleteConfirmationButtonForRowAt indexPath:IndexPath) - >は、文字列'スウィフトでは? 3 – AppreciateIt

関連する問題