ios - Objective-C calling upon a IBAction without having to change the sender to nil -
ios - Objective-C calling upon a IBAction without having to change the sender to nil -
i have programme phone call upon ibaction in ibaction. however, way got work used [self buttonpress:nil]; called upon ibaction button though function problem ibaction called upon sender's instance turned nil if in ibaction called upon used sender wouldn't anything. there way phone call ibaction without changing instance of sender?
a potential workaround "could" have @ibaction methods serve wrapper around different methods. way when want phone call @ibaction calling method wraps.
@ibaction function1 { // calls method: submethod1() } @ibaction function2 { // calls method: submethod2() } @ibaction function3 { // calls method: submethod1() submethod2() }
ios objective-c ibaction
Comments
Post a Comment