Genadinik
Genadinik

Reputation: 18629

IOS - control-drag of a button is not working

I have some buttons I am trying to create, and when I try to do a control-drag into the controller, it isn't showing me the options to create configure that button. Any idea what could be wrong? I am just following my first tutorial is its probably something for newbies.

My screen shot is attached.enter image description here

Upvotes: 0

Views: 872

Answers (2)

Omar Abdelhafith
Omar Abdelhafith

Reputation: 21221

It seems that you opened an incorrect .h file in your assistant editor, you will need to open the correct interface file for the correct view controller you have in your nib

from what i can see is that LearningCenter should not be the interface opened,

You will need to change the assistant view controller to the correct one Check the screen shot

enter image description here

Upvotes: 1

Senthilkumar
Senthilkumar

Reputation: 2481

just right click on your button from that select last option (New Referencing outlet collections. from that map your .h file . At the time a popup will appear. just enter your button name.

Upvotes: 1

Related Questions