Solved

Connections Panel not showing Outlets

Posted on 2011-02-22
3
551 Views
Last Modified: 2012-08-13
Hello, I'm brand new to iOS development - literally. I'm following a how-to from the book "iPhone Programming The big nerd ranch guide."

I have created the project called Quiz.

Under classes QuizAppDelegate.h I have:

@interface QuizAppDelegate : NSObject <UIApplicationDelegate> {

int currentQuestionIndex;

//Model Objects
NSMutableArray *questions;
NSMutableArray *answers;

//view objects
IBOutlet UILabel *questionField;
IBOutlet UILabel *answerField;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;

- (IBAction)showQuestion:(id)sender;
- (IBOutlet)showAnswer:(id)sender;

@end


--------------------


In the User interface window I have added 2 fields and 2 buttons. When I Control-Click on anything, the Connections Panel opens, but nothing shows up in it.

I have saved, closed and reopened. Checked the syntax, and did Clean all targets.

I'm brand new to this and it's probably simple. Can anyone help?



 
0
Comment
Question by:whosbetterthanme
  • 2
3 Comments
 
LVL 2

Expert Comment

by:nish_tr
ID: 34959306
Use

@property(nonatomic, retain) for

IBOutlet UILabel *questionField;
IBOutlet UILabel *answerField;


in your ".h" file
and also use

@synthesize questionField;
@synthesize answerField;

Thanks

in your ".m" file
0
 
LVL 7

Accepted Solution

by:
whosbetterthanme earned 0 total points
ID: 34960349
I figured it out. In the Doc window I double clicked the App Delegate icon and it opened the connections window, and it was only there that I could see the outlets. Then I was able to drag them onto the interface and see them.

I'm still not sure why it wouldn't show them when I Control/Clicked on the interface.

Anyway thank for the response.
0
 
LVL 7

Author Closing Comment

by:whosbetterthanme
ID: 34995321
I was able to figure out a solution
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating an installable image of an iPhone mobile app (an .ipa file) that beta testers could load onto their test devices. The process involved quite a few steps, but both Appcelerator and Diawi.org had decent …
There is a security feature on iOS devices that is nearly impenetrable when it has been activated.  This article will provide some possible solutions as well as necessary steps to take to ensure you do not end up with a locked device.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question