how can I pass method Of one class to another class ?

Posted by srikanth rongali on Stack Overflow See other posts from Stack Overflow or by srikanth rongali
Published on 2010-05-15T10:08:40Z Indexed on 2010/05/17 12:40 UTC
Read the original article Hit count: 157

I have a ClassA. in ClassA there is a method(-(void)parseData:). I have a ClassB which have ClassA object. And ClassB *aClassB is member variable of ClassA.

In ClassB the code is

aClassB = [[ClassB alloc]init];
[aClassB parseData];  

I have ClassC. I need to use the method parseData of ClassB in ClassC. I think I can use the object created in ClassB of ClassA.

How can I pass the method to ClassC ? Thank You.

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about class