Returns a value (localized if possible) from a bundle’s information dictionary.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Foundation
Declaration
Parameters
bundle
The bundle to examine.
key
The key for the value to return.
Return Value
A value corresponding to key
in bundle
’s information dictionary. If available, a localized value is returned, otherwise the global value is returned. Ownership follows the The Get Rule.
Discussion
You should use this function rather than retrieving values directly from the info dictionary (Info
) because CFBundle
returns localized values if any are available (from the Info
file for the current locale).