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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -