Dynamically loads the bundle’s executable code into a running program, if the code has not already been loaded.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
YES if the method successfully loads the bundle’s code or if the code has already been loaded, otherwise
You can use this method to load the code associated with a dynamically loaded bundle, such as a plug-in or framework. Prior to OS X version 10.5, a bundle would attempt to load its code—if it had any—only once. Once loaded, you could not unload that code. In macOS 10.5 and later, you can unload a bundle’s executable code using the
You don’t need to load a bundle’s executable code to search the bundle’s resources.
This method initializes the principal class in the bundle. To add code you want executed after loading, override the
initialize class method of the principal class.