App crashes with this error
NSInvalidArgumentException :Pushing the same view controller instance more than once is not supported
Getting this error when trying to push another navigationcontroller from another navigation controller's UIBarButtonItem.
Message shows in console:
UINavigationController pushViewController:transition:forceImmediate:]_block_invoke + 0
This is the segue coding
else if ([segue.identifier isEqualToString:@"showGroupView"]) {
GroupView *groupView = (GroupView *)segue.destinationViewController;
[self.navigationController pushViewController:groupView animated:YES];
}
If anyone can help resolve this error