Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
390 views
in Technique[技术] by (71.8m points)

ios - Bundle display name missing space characters

When I give Bundle display name with space as "A B C D", I get the app name as "ABCD". This happens only on the iOS 11.I tried override name"CFBundleDisplayName" in my InfoPlist.string and use special unicode character U00A0 (No-break space) and it doesn't help me.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This is because of a change Apple made in iOS 11 for truncating for longer app names. If the name is longer than 12 characters, the spaces will be removed. Otherwise, they'll still exist.

For example, Guide book app will become Guidebookapp, but Gui boo app will stay as Gui boo app.

Using unicode   (FIGURE SPACE) works because it isn't an ascii space. I would be hesitant to use this as a solution because it seems reasonable that Apple would "fix" this bug and remove   for apps with names longer than 12 characters.

https://forums.developer.apple.com/thread/77832


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...