I have a main view (contains a table view of profiles) which has a Navigation Controller. In the navigation bar I have a "menu" bar button. When the user clicks the bar button, a Menu View is added as a subview to the main view. This Menu View (which is a subview) has a button. This button is going to be used to segue to another view in my story board (not a sub view).
This code in my Menu View's .m file doesn't work:
- (IBAction)button:(UIButton *)sender {
[AlertStatus alertStatus:@"" :@"Message1" :0];
[sender performSegueWithIdentifier:@"segueTo1" sender:sender];
}
I get a "No visible @interface for 'UIButton' declares the selector performSegueWithIdentifier:sender:'" error message
Can anyone help? I also heard of using a delegate to the main view but I have no experience in that.