How can I localize a standard iOS control?

I am writing an iPhone application that has a table cell with the UITableViewCellEditingStyleDelete style. This leads to the display of a cell with a red circle in which the minus sign is on the left. Still. It also has a β€œDelete” button (a rectangular button with the text β€œDelete”) on the right side. I need to change the text "Delete" to localize to other languages. Where is this text defined?

+4
source share
1 answer

In the UITableViewDelegate Protocol you should look at the following method:

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

See docs .

+16
source

Source: https://habr.com/ru/post/1390916/


All Articles