Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the name of the running application in iOS

If the application name under the icon on the home screen is "My Awesome App" how do you get that string within the application at runtime?

like image 489
Jonathan Avatar asked Nov 30 '11 03:11

Jonathan


People also ask

How do you name an iOS app?

Build Settings> Change "Product Name" TARGETS> Select app> Change "Display Name" Project Navigator> Select project name> Double-click> Change "project name"> Rename> Mange Scheme> Change "Scheme name"

Can you see the last time an app was installed on an iPhone?

You can find out when an application was downloaded on an iPhone by accessing download history. Press a 3D Touch to have shortcuts with one being purchased tab where you'll get app details. You can also go to the app store and find the “purchased tab” with a list from the recent to old ones.

How do I manage running apps on iPhone?

From the Home Screen, swipe up from the bottom of the screen and pause in the middle of the screen. Swipe right or left to find the app that you want to close. Swipe up on the app's preview to close the app.


1 Answers

I’d try

[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"]; 

although presumably you know your own app’s name and can just use it…

like image 171
David Dunham Avatar answered Sep 20 '22 10:09

David Dunham