Private APIs need to be exported and export tools need to be used (currently class-dump. And dumpframeworks. pl are popular)
Download: http://ericasadun.com/HeaderDumpKit/
Usage:
1. Put the downloaded class-dump under usr/local/bin.
If '/usr/local/bin'
If you do not know where it is, enter 'open-a finder/usr/local/bin' under terminal'
To open the directory.
Remember to use chmod to modify the execution permission for class-dump. for example, to modify class-dump in usr/local/bin, you can switch to the usr/local/bin directory in terminal: chmod 777 class-dump.
Use class-dump independently, provided that you have put the downloaded class-dump under usr/local/bin.
Syntax: Class-dump-H <target file path>-O <save path>
Export the springboard below
Open terminal Input
Class-dump-H/developer/platforms/iphonesimulator. Platform/developer/sdks/iphonesimulator4.2.sdk/system/library/coreservices/Springboard. app-O/users/LKK/desktop/spring
In this way, the springboard directory will be generated in the user directory. The exported. H is put here.
Then copy the directory
/Developer/platforms/iphoneos. Platform/developer/sdks/iphoneos4.2.sdk/usr/include/springboard/
Now, the private API is exported, and import <springboard/XX. h> is directly used for reference in the project.