objective c - How to call function of one class from another class programatically -
i called function of 1 view controller class other view controller in nib file using first responder before.but want programatically.
suppose,i have 2 controller class named , b.where b root controller.i have button(added programatically)named (btn) in controller class.now want call function( funcb) of class b when pressed btn of class a.how can this??
i dont have nib file in class a. plz ans question. advanced ur reply.
i'm not sure whether i've interpreted question correctly, if b
object instance of b
class, , methodb
method of b
class, can call methodb
via:
[b methodb];
i assuming "function", mean "method"...?
Comments
Post a Comment