What is the second parameter of NSLocalizedString()?

前端 未结 3 1780
长情又很酷
长情又很酷 2020-11-29 19:30

What is the *comment parameter in:

NSString *NSLocalizedString(NSString *key, NSString *comment)

If I do this:



        
3条回答
  •  醉酒成梦
    2020-11-29 19:42

    It's for just developer understanding on the translation, that is you are giving a key to get corresponding string from the corresponding strings file.

    The comment parameter enables developer to understand what the key represents...

提交回复
热议问题