2021年1月14日星期四

Is there an easy way to write a lot of strings

When I write like this, do I have any simple way? Do I need to enter a number?

let text1 = NSLocalizedString("apple", comment: "")  let text2 = NSLocalizedString("orange", comment: "")  let text3 = NSLocalizedString("mango", comment: "")  let text4 = NSLocalizedString("cat", comment: "")  let text5 = NSLocalizedString("dog", comment: "")  let text6 = NSLocalizedString("bird", comment: "")  ......    let textArray: NSArray = [text1, text2, text3,....]  
https://stackoverflow.com/questions/65728661/is-there-an-easy-way-to-write-a-lot-of-strings January 15, 2021 at 08:03AM

没有评论:

发表评论