bundleWithPath:
Returns an NSBundle object that corresponds to the specified directory.
Declaration
+ (instancetype) bundleWithPath:(NSString *) path;Parameters
- path:
The path to a directory. This must be a full pathname for a directory; if it contains any symbolic links, they must be resolvable.
Return Value
The NSBundle object that corresponds to path, or nil if path does not identify an accessible bundle directory.
Discussion
This method allocates and initializes the returned object if there is no existing NSBundle associated with path, in which case it returns the existing object.