I must have spent hours trying to figure this out so hopefully I'll spare you some grief.
Working on a personal project to reinforce what I've learnt so far (just completed ch6) I stumbled while hooking up my IBOutlets in IB. For sake of simplicity the involved files are PersonViewController.c/.h/.xib
In IB I cntrl clicked "File's Owner" and expected to find an IBOutlet I just defined in the .h file. Yes, I did save the .h file before switching to IB, and yes, I did try restarting IB and XCode - nothing worked.
What did work was instructing IB to read the .h file again and viola there was my IBOutlet. To do this, while in IB, File -> Read Class Files.
O'Reilly Forums: Interface Builder Tip - O'Reilly Forums
Page 1 of 1
Interface Builder Tip IBOutlets not showing?
#2
Posted 14 April 2010 - 11:03 PM
Strange. Can't reproduce. What version of XCode and IB?
I am using 3.2.1 and it works like a charm.
The File's owner in IB automatically sync with header file when the 'class' identity in the inspector point to the same class.
I am using 3.2.1 and it works like a charm.
The File's owner in IB automatically sync with header file when the 'class' identity in the inspector point to the same class.
Share this topic:
Page 1 of 1



















