iamjustaprogrammer
iamjustaprogrammer

Reputation: 1654

How to specify a different bundle display name on iPad (universal app)?

I have tried this in info plist which does not work: CFBundleDisplayName~ipad = "Full app name"

The iPad still displays only the CFBundleDisplayName which is abbreviated for iPhone.

Is there another approach to get a different bundle display name for iPad in a universal app?

Upvotes: 3

Views: 738

Answers (3)

zaheer
zaheer

Reputation: 893

As @LebRon suggested I solved it by setting a separate key for iPad and iPhone,

here is a screenshot which solved it for me,

enter image description here

Upvotes: 2

LebRon
LebRon

Reputation: 755

It can be done as stated in the apple document link

In iOS 3.2 and later, apps can designate keys in the Info.plist file as being applicable only to specific types of devices. To create a device-specific key, you combine the key name with some special qualifiers using the following pattern:

key_root-platform~device

In this pattern, the key_root portion represents the original name of the key. The and portions are both optional endings that you can use to apply keys to specific platforms or devices. For the platform key, you can specify a value of iphoneos or macos depending on the platform you are targeting.

I think what you have done is right. Just try to delete the app from the device and build and run again.

Upvotes: 4

ismailgulek
ismailgulek

Reputation: 1029

No, there is not a way to do it. In order to understand from a code whether the device is iPhone or iPad, you need runtime. And Bundle Display Name cannot be changed at the runtime.

It was explained here: Dynamically set iOS Bundle Display Name in Xcode 4 on Build

Upvotes: 0

Related Questions