我必须为本地化编写哪一行代码?

时间:2018-01-16 07:30:56

标签: ios objective-c localization localizable.strings

代码1:

Redirect URL

代码2:

cell.textLabel.text = LocalizedString(@"nice title");

他们之间有什么区别?

哪一个是正确的并且可以使用?

1 个答案:

答案 0 :(得分:0)

你应该像这样写

cell.textLabel.text = NSLocalizedString(@"nicetitle",@"comment goes here");

enter image description here