I will start by apologising if this is a naive, simple or stupid question. I am relatively new to objective C and am trying to learn.
Basically I have a situation in which methodA
, methodB
or methodC
are called. These methods then call methodX
. Once the end of methodX
is reached I need it to re-call the method that called it (methodA
, methodB
or methodC
).
I have never come across this issue before and would like help developing a solution. In a more complex situation I may also have the following. methodA
, methodB
or methodC
are called; they call methodX
. methodX
goes off and calls a bunch of other methods (that cannot be changed), at some later point methodY
(in the same class as methodA
, methodB
, methodC
and methodX
) gets called, this in turn should call the method that started out calling methodX
(be it methodA
, methodB
or methodC
).
Please can someone point me in the right direction with this problem. If there are any tutorials or basic examples out there that could help I would really appreciate being directed to them. I have tried googling the topic described in my examples however I haven't had much luck since I don't know the technical terms for what I'm trying to achieve.
Thanks in advance.
NOTE: In my examples methodA
, methodB
, methodC
, methodX
and methodY
are all in the same class.