KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Say for instance I have an IBAction that is hooked up to a UIButton in interface builder. - (IBAction)functionToBeCalled:(id)sender { // do something here } With-in my code, say for instance in another method, what is the best way to call that IBAction ? If I try to call it like this, I receive an error: [self functionToBeCalled:]; But, if I try to call it like this (cheating a bit, I think), it works fine: [self functionToBeCalled:0]; What is the proper way to call it properly?
Tags (comma-separated)
Save Edits
Cancel