Class object for the specified name.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
The name of a class.
Class object for
class is not one of the classes associated with the receiver or if there is an error loading the executable code containing the class implementation.
If the bundle’s executable code is not yet loaded, this method dynamically loads it into memory. Classes (and categories) are loaded from just one file within the bundle directory; this code file has the same name as the directory, but without the extension (“
.framework”). As a side effect of code loading, the receiver posts
did after all classes and categories have been loaded; see Notifications for details.