How to use NSLocalizedString in IB [iPhone SDK]?

前端 未结 5 1876
误落风尘
误落风尘 2021-02-03 13:55

When I assign text programmatically, I can use NSLocalizedString(....), but if I am writing the text directly in IB (say to a UILabel) how do I localize it?

5条回答
  •  感动是毒
    2021-02-03 14:45

    from iOS 7 & Xcode 5 on, you should avoid using NSLocalizedString where possible. The preferred method is called 'base localisation', and works through the Storyboard. It will save you a lot of work. If you google for 'base localisation' you'll find enough tutorials to get you going

提交回复
热议问题