O'Reilly Forums: Interface Builder Tip - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Interface Builder Tip IBOutlets not showing?

#1 User is offline   mambotx 

  • Active Member
  • PipPip
  • Group: Members
  • Posts: 29
  • Joined: 11-January 10
  • Gender:Male
  • Location:UK

Posted 07 April 2010 - 10:11 AM

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.

0

#2 User is offline   stan_siu 

  • New Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 14-April 10

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users