Reputation: 63
With all of the programming I have ever done in my entire life I have found myself banging my head against the wall shouting "Show me the header file! Just show me the header file!" I have decided that I will take the summer off and only write objective-c in Xcode for iPhones. I want to be able to read the header files for various objective-c libraries for the purpose of familiarizing myself with them. The one I want right now is UITouch.h, but really I just want to be able to view whatever ".h" file I need to know more about. Is there any easy way to do this?
Upvotes: 2
Views: 3679
Reputation: 1285
Your code should have a #import or #include statement to import/include the header file. Holding the Command key, click the import/include statement to view the header. Also, you can Command-click on a symbol to jump to the header file that defines it.
Alternatively, you can select the pull down menu at the far left of the jump bar, and go down to the "includes" submenu and select the header file to view.
Upvotes: 1
Reputation: 10698
Right-click on a symbol and select Jump to Definition in the popup menu. That brings you to the header file where the symbol is defined.
Upvotes: 0
Reputation: 2840
Open a new project, import the frameworks, or open up the frameworks folder of your current project. The headers will be inside those packages.
Upvotes: 2