?
Solved

Connections Panel not showing Outlets

Posted on 2011-02-22
3
Medium Priority
?
555 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 …
     Intro      In this article, I will show you how to parse a JSON in Swift using an open source library called SwiftyJSON (https://github.com/SwiftyJSON/SwiftyJSON). If you haven't heard of a JSON before, it stands for JavaScript Object Notation…
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.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

771 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