Function

class_getImageName

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

Declaration

const char * class_getImageName(Class cls);

Parameters

cls

The class you are inquiring about.

Return Value

A C string representing the name of the library containing the cls class.

See Also

Working with Libraries

objc_copyImageNames

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

objc_copyClassNamesForImage

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

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