how can I pass method Of one class to another class ?
- by srikanth rongali
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.