How can this be achieved? I would like to get the name so i can display it within an app, without having to change it in code each time i change a name, of course.
According to Apple, using - objectForInfoDictionaryKey:
directly on the NSBundle
object is preferred:
Use of this method is preferred over other access methods because it returns the localized value of a key when one is available.
Here's an example in Swift:
let appName = NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleName") as! String
// Or use key "CFBundleDisplayName"
Update for Swift 3 - thanks Jef.
let appName = Bundle.main.object(forInfoDictionaryKey: "CFBundleName") as! String