55

Change Display Name iOS Tutorial

 5 years ago
source link: https://www.tuicool.com/articles/hit/yYnIRnm
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

On the Home screen by default the app's name will be displayed. Sometimes it is needed to change this display name. In this tutorial the display name will be changed using a property list item. This tutorial is made with Xcode 10 and built for iOS 12.

Open Xcode and create a new Single View App.

JZR3e2r.png!web

For product name, use IOSChangeDisplayNameTutorial and then fill out the Organization Name and Organization Identifier with your customary values. Enter Swift as Language and choose Next.

Zj2mqez.png!web

By default, the displayed name on the Home screen equals the App name. Go to the info.plist file and Look for the Bundle name item. It's value is ${PRODUCT_NAME), which in fact is the Project's name,

Build and Runthe Project, go to the Hardware menu and select Home. The current app's name is too long to display and therefore it is truncated.

6Jjm6nU.png!web

Go to the info.plist file Right click on any item and select "Add Row". Choose Bundle Display Name. Give the row the value NewName.

FRZNfaM.png!web

Build and Runthe app again, go to the home screen to see the new display name.

ua26vaU.png!web

You can download the source code of the IOSChangeDisplayNameTutorial at the ioscreator repository on Github .


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK