I have a "class-A" which contains a method
-(void)methodA
{
//Logic
}
I have another "Class-B" which is a method
-(void)methodB
{
//Logic
}
Now i am trying to call methodA from Class B
So what i do
In Class B
Create an object of "Class-A"
ClassA *a;
@property(nonatomic,retain)ClassA *a;
@synthesize a;
-(void)methodB
{
[self.a methodA];
}
But the method is not called. So what am i doing wrong or any other approach for doing this ?