Cen92
Cen92

Reputation: 171

Cannot connect a property to storyboard

I am building a master detail iPad application. Trying to connect a property declared in my view controller's.h file.

@property (weak, nonatomic) IBOutlet UILabel *aboutGame;
@property (weak, nonatomic) IBOutlet UITextField *gameDescription;

The file owner has been set as I am able to connect the *aboutGame property to a label on my storyboard. Trying to set the Text field to an element just does not seem to work. Am I missing something here?

The following shows up when attempting to connect the textfield. (Note the same is going wrong when trying to link a UIImageView also)

a busy cat

Upvotes: 1

Views: 121

Answers (1)

NeverHopeless
NeverHopeless

Reputation: 11233

You have UITextField in definition and UITextView on Interface builder. So it is not showing you the option to connect.

Try like this:

@property (weak, nonatomic) IBOutlet UITextView *gameDescription;

Upvotes: 5

Related Questions