I am having problems getting my application to build. I am trying to call a method from ViewController1 in my current ViewController2.
In my .h file of ViewController1 i have declared the method so it is visible.
-(void)saveLocation;
In my ViewController2.h file i have the following
#import "ViewController1.h"
@interface ViewController2 : UIViewController
@property (nonatomic,assign) ViewController1 *MethodSave;
@end
and in my ViewController2.m
[self.MethodSave saveLocation];
it doesn't work and I've tried to fix it for a while now. Any help would be great. Thank you