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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -