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.
我目前正在为 IOS 开发一个应用程序,我有四个 Localizable.strings 文件,每个文件代表一种不同的语言。问题是,我希望能够更改正在使用的文件,而无需重新启动应用程序。
如果不重新启动应用程序,您将无法做到这一点。
一种解决方法是将语言及其值存储在数据库文件或 plist 文件中。然后使用那里的数据。(基本上这不是一个好主意)