Hello everyone.
I have 2 classes.
- ViewController1
- ViewController2
In ViewController1 I have a method:
- (void)hideBirthFrameOutlet2
{
self.BirthFrameOutlet2.hidden = YES;
}
I want to call my hideBirthFrameOutlet2 method from outside my ViewController1 class. I want to call it from within ViewController2 from within this method:
- (IBAction)goBackToPage1:(id)sender
{
// put the code right here
[self.navigationController popViewControllerAnimated:YES];
}
I have found lots of examples in stack overflow on how to do this and for the last 3 days I have been attempting call my hideBirthFrameOutlet2 method from outside my ViewController1 class. It should be simple.
I am aware that I should #import ViewController1.h into ViewController2.h right under the other imports and I have but I just can't get it to work. I know what I am attempting is a very doable.
Can someone here help me out on this?
JR