Instance Property

infoDictionary

A dictionary, constructed from the bundle’s Info.plist file, that contains information about the receiver.

Declaration

@property(readonly, copy) NSDictionary<NSString *,id> *infoDictionary;

Discussion

If the bundle does not contain an Info.plist file, this dictionary contains only private keys that are used internally by the NSBundle class. The NSBundle class may add extra keys to this dictionary for its own use. Common keys for accessing the values of the dictionary are CFBundleIdentifier, NSMainNibFile, and NSPrincipalClass.

See Also

Getting Bundle Information

bundleURL

The full URL of the receiver’s bundle directory.

bundlePath

The full pathname of the receiver’s bundle directory.

bundleIdentifier

The receiver’s bundle identifier.

objectForInfoDictionaryKey:

Returns the value associated with the specified key in the receiver's information property list.