I've been searching high and low for a solution, and those that I've found and what I expected to work, just haven't worked for me...
For example, say I've got viewController1 and viewController2.
in viewController1, say I've got a method like below:
-(void)method1
{
NSLog(@"Method1 called");
}
in viewController2.m I would expect to import viewController1.h and do the following:
-(void)method2
{
viewController1 *view = [[viewController1 alloc] init];
[view method1];
}
Is it not this simple? I've seen many threads giving this sort of answer, but it just won't work for me.
Thanks in advance.