I have ViewControllerA and ViewControllerB. I want to call the ViewControllerA method from ViewControllerB.
There is a method in ViewControllerA:
-(NSMutableArray*) loadData;
In ViewControllerB.h:
#import "ViewControllerA.h" ....... @property (nonatomic, strong) ViewControllerA * viewControllerA; @property (nonatomic, strong) NSMutableArray * mutableArray;
In ViewControllerB.m:
self.mutableArray =[viewControllerA loadData];
but the method does not call. What for? thanks in advance
source share