I added a uibutton to the interface but when trying to connect it to the Controller class, ctrl+dragging to the interface block does nothing. The line simply vanishes, and no connection is made. what is going wrong here?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should be connecting the IBAction to the UIButton. When you drag the IBAction connection to the button it should ask you what kind of connection you want to make. I usually choose “touch up inside”.
In the connections tab of IB the IBAction should be listed as
changeGreeting: