Returns the full pathname for the resource identified by the specified name and file extension, located in the specified bundle subdirectory, and limited to global resources and those associated with the specified localization.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
The name of the resource file.
If you specify
nil, the method returns the first resource file it finds that matches the remaining criteria.
The filename extension of the files to locate.
If you specify an empty string or
nil, the extension is assumed not to exist and the file is the first file encountered that exactly matches
The name of the bundle subdirectory to search.
The language ID for of the localization. This parameter should correspond to the name of one of the bundle's language-specific resource directories without the
The full pathname for the resource file or
nil if the file could not be located.
This method is equivalent to
path, except that only nonlocalized resources and those in the language-specific
.lproj directory specified by
localization are searched.
There should typically be little reason to use this method—see Getting the Current Language and Locale. See also
preferred for how to determine what localizations are available.