Function

objc_copyClassNamesForImage(_:_:)

Returns the names of all the classes within a specified library or framework.

Declaration

func objc_copyClassNamesForImage(_ image: UnsafePointer<Int8>, _ outCount: UnsafeMutablePointer<UInt32>?) -> UnsafeMutablePointer<UnsafePointer<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.

See Also

Working with Libraries

func objc_copyImageNames(UnsafeMutablePointer<UInt32>?) -> UnsafeMutablePointer<UnsafePointer<Int8>>

Returns the names of all the loaded Objective-C frameworks and dynamic libraries.

func class_getImageName(AnyClass?) -> UnsafePointer<Int8>?

Returns the name of the dynamic library a class originated from.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software