user1444872
user1444872

Reputation: 63

How do I view objective-c library header files in xcode

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

Answers (4)

Tom Pelaia
Tom Pelaia

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

SSteve
SSteve

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

kevboh
kevboh

Reputation: 5245

Cmd-shift-O to Open Quickly, then start typing the class name.

Upvotes: 2

CBredlow
CBredlow

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

Related Questions