A
A
Alexey Storozhev2013-12-16 17:05:38
Cocoa
Alexey Storozhev, 2013-12-16 17:05:38

addTarget:action:forControlEvents: and several targets

[control addTarget:target1 action:@selector(action1) forControlEvents:UIControlEventTouchUpInside];
[control addTarget:target2 action:@selector(action2) forControlEvents:UIControlEventTouchUpInside];

Does this guarantee me the call sequence [target1 action1]; [target2 action2]?
Are they called synchronously? Where to read about it, how to reverse?
Unfortunately there is no time to think with your head.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Almas Sapargali, 2013-12-16
@asapargali

From the documentation :
So yes, it is guaranteed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question