在代码中更改 iOS 应用程序名称
我想更改我的应用的名称仅当它出现在用户的主屏幕上时.旧的应用程序名称可以保留在 App Store、iTunes Connect、Xcode 或其他任何地方.我想仅针对某些用户进行此更改.当代码确定满足条件时,用户的应用名称应更改.是否可以执行此操作?如果可以,如何执行?
I want to change the name of my app only as it appears on the user's home screen. The old app name can remain in place on the App Store, in iTunes Connect, in Xcode, wherever else. I want to make this change only for certain users. When the code determines conditions are met, the user's app name should change. Is it possible to do this and if so, how?
为了澄清我的原因,这是一款游戏,游戏的标题暗示了游戏的深层秘密".我想通过使用标题的首字母缩略词来隐藏提示,直到玩家在游戏中透露秘密.届时我会更改应用的标题以显示完整的游戏标题.
To clarify my reason, this is for a game where a "deep secret" of the game would be hinted at by the game's title. I want to hide the hint by using an acronym for the title until the player has revealed the secret in-game. At which point I would change the app's title to reveal the full game title.
Afaik 您只能更改 ...-Info.plist
文件中的显示名称.但是,您可以通过本地化该文件为您的应用程序使用不同的显示名称,但这只会根据语言而不是用户为您提供不同的名称.
Afaik you can only change the display name in your ...-Info.plist
file. However, you can have different display names for your app by localising that file, but that would only give you different names based on the language, not the user.
有关更多信息,请参阅更新应用的显示名称一个>
您可以做什么:
选项 1:为每个用户环境设置不同的方案,并为每种可能的用户类型编译一个应用
Option 1: Setup different schemes for each user environments and compile one app for each possible type of user
选项 2:创建一个应用程序内部主屏幕,让用户在那里选择更具体的应用程序
Option 2: Create an app internal home screen and let the user select the more specific app there
选项 3:不更改显示名称,而是更改应用程序中的配色方案和徽标(我在某些应用程序中看到过这种情况)
Option 3: Don't change the display name, but change the color schemes and logos in the app (I have seen this in some apps)