Can I use objc_getClassList and class_getSuperclass in my iPhone application?
Why “objc/objc-runtime.h” is not present when compiling for the device?
PS: Actually I am using 4.2 SDK
Can I use objc_getClassList and class_getSuperclass in my iPhone application? Why objc/objc-runtime.h is not
Share
For objc_getClassList not working on the device, I believe the problem is that the class definitions are in a static library, so you must add the -ObjC flag to the linker. The result of doing this is that the “entire” static library that defines a particular class will be loaded. See this link from Apple
According to Apple’s runtime reference, you should use “superclass” instead of class_getSuperclass