Is there a way to hookup a button click to a method programmatically? It would be like imitating the CTRL+CLICK in Interface Builder.
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.
Check out UIControl, what UIButton inherits from. Specifically this method:
The action is the method you want to be invoked, and controlEvents represents the events that the action method should be called for, e.g. UIControlEventTouchUpInside for a click.