[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"]
this API returns Bundle Display Name in plist.
However my app is localized and has different display name.
so i need to get localized display name in InfoPlist.strings
that should vary with device language setting.
To set the actual localized name we need to add a localized file to the project InfoPlist. strings and add the key-value pair “CFBundleDisplayName” = “<Localized app name>”;. When you now start the app in the simulator you should see the localized app name.
Have you tried -[NSBundle localizedInfoDictionary]
?
[[[NSBundle mainBundle] localizedInfoDictionary] objectForKey:@"CFBundleDisplayName"]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With