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? David Dunham I’d try [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"]; although presumably you know your own app’s name and can just use it… Swift 3 & 4 Bundle.main.object(forInfoDictionaryKey: "CFBundleName") as? String ?? "" Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String ?? "" Swift 2.2 NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleName") NSBundle.mainBundle().objectForInfoDictionaryKey(