Get Application Icon Name

In a previous post, Get Application Name, I wrote a line of code to get the application name from the app bundle.

The line of code below is a slight modification that shows how to get the name that will appear on the iPhone below the icon:

[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];

The CFBundleDisplayName value corresponds to the Bundle Display Name in the application plist file, see the figure below:

You can see the application icon for this example in this figure: