Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以传递一个参数来NSLocalizedString覆盖本地化字符串并告诉它使用什么语言,以便用户可以从“设置”菜单中选择一种语言?
NSLocalizedString
怎么会这样?
我们做过类似的事情,但答案是不使用NSLocalizedString. 相反,由于您知道用户选择了哪种语言,您只需加载该语言的文本。您可以使用 Core Data 或 SQLite 等将其存储在属性列表中。