Returns the names of all the classes within a specified library or framework.
SDKs
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Objective-C Runtime
Declaration
func objc_copyClassNamesForImage(_ image: Unsafe Pointer<Int8>, _ outCount: Unsafe Mutable Pointer<UInt32>?) -> Unsafe Mutable Pointer<Unsafe Pointer<Int8>>?
Parameters
image
The library or framework you are inquiring about.
outCount
The number of class names in the returned array.
Return Value
An array of C strings representing all of the class names within the specified library or framework.