Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Connections Panel not showing Outlets

Posted on 2011-02-22
3
Medium Priority
?
557 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

The Basics of Storyboard Storyboards were first introduced to developers in the release of iOS 5. They save the developer the trouble of designing each screen’s interface in a different file. The storyboard allows you to see the conceptual mockup o…
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.
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.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

610 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