how to switch between multiple views using view controller(with the help of IBAction) ?
This is the code I have written so far:
In the interface file I have made an IBAction:
-(IBAction)Next;
and in the implementation file I have written this:
- (IBAction)Next
{
SecondPopovercontrol *second = [[SecondPopovercontrol alloc] initWithNibName:nil bundle:nil];
[self presentingViewController:second animated: YES completion:NULL]; // This is the step I am facing issues with
}
I am unable to get this running- the name of the 2 view controllers are: WOMPopoverController
and SecondPopovercontrol
.
The error is:
"No visible @interface for WOMPopoverController declares the selector presenting Viewcontroller:animated:completion"
I am new to StackExchange, so if there is any inconsistency in my question please let me know. And, please guide me about how to solve this issue.
thank you