I am having a peculiar problem with the iPhone SDK.
I have tried to run several tutorials from different sources on my development machine. The problem always seems to be in connecting the code to a view in Interface Builder. If I have a button or data field (or some other library function) and I declare some properties in the viewcontroller.h file, I launch Interface Builder by clicking on the .xib file and attempt to make a connection by dragging from the referencing outlet in the connection viewer and the only possible connection presented (present in the pop-up box is view). No other options are available regardless of what code is available. Has anybody experienced this or am I missing something obvious?
In your controller's header file, make sure you are using IBOutlet on your controls and IBAction on your methods that you wish to link to link up in Interface Builder. Also, make sure that your controller class is defined as the "class" for the XIB in the Inspector window (a.k.a. File's Owner)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With