iOS应用程序名称中的空间不显示

我的包显示名称是Xcode中的“Standford 2015”,但它在安装时在我的iPhone上显示为“Standford2015”。

我做错了什么?

在您的本地化InfoPlist.string不要使用空格,而是使用unicode字符“不间断的空间”:

http://www.fileformat.info/info/unicode/char/00a0/index.htm

所以你在InfoPlist.string中的行应该是这样的:

"CFBundleDisplayName" = "My\U00A0app";

我解决了这个问题,用像NB空间这样的unicode符号replace空间。

我在这篇文章中提出了一点小小的指示。

对于iOS 11,您可以打开info.plist作为源代码并使用  而不是空格

可能的解决方法:使用可本地化的InfoPlist.strings文件的内容:

 /* Localized versions of Info.plist keys */ "CFBundleDisplayName" = "Standford 2015"; 

使用plist CFBundleDisplayName来设置图标下方的空间。

更多信息: 在cocoa应用程序的信息列表中,“bundle display name”和“bundle name”有什么区别