The application switches to VC1 on VC2, in VC2 "Back", "Menu" and "Submit", the "Send" button appears, displaying one warning with a message and the "Ok" button when you click "Ok", I try to jump to VC1, the code is executed but navigation does not occur.
The same thing happens for the Back and Menu buttons, and the code executes, but does not move to other pages. Using Xcode 9 beta 6.
Below is a piece of code that I use in my project
NSArray *controllersArray = [[self navigationController] viewControllers]; for(UIViewController *controller in controllersArray) { if ([controller isKindOfClass:[ViewController1 class]]) { ViewController1 *accDetailVC = (ViewController1*)controller; [[self navigationController] popToViewController:accDetailVC animated:YES]; break; } }
works in other versions of iOS, except for the beta version of iOS 11. Please help me with this if someone is facing the same problem.
source share