IOS9 navigation navigation bar not working

Everything works fine until iOS 9.

However, when the application runs on iOS 9, nothing happens when the back button is pressed, so I canโ€™t go back, and itโ€™s also inactive.

In addition, I cannot move on to the next view after the first session.
For example, HomePage photos โ†’ click the button to go to view 1 โ†’ Segued to View 1
โ†’ click on the button to go to view 2 โ†’ nothing will happen

I use the code below to execute segue,

UIViewController *push = [self.storyboard instantiateViewControllerWithIdentifier:@"storyboard_id"]; [self.navigationController pushViewController:push animated:YES]; 

This problem only occurs on the iPhone. But the application works flawlessly when running on the simulator .

Thank you for your help.

0
source share
2 answers

Finally, the problem is resolved. I am creating a new project and using the same method to execute segue, and it is developing very well. Therefore, I ruled out the possibility of Xcode. And I found that I transferred the device token for applications in my NSRunLoop application deletion, I donโ€™t understand why this would cause such a strange problem, I decided to save the device token in NSUserdefault, and then get it on the home page and parse it to the server . So now it works like a charm after I remove NSRunLoop now.

0
source

I ran into a similar problem (maybe the same one).

For me, the details are what I built using Xcode 6.4, then testing on iOS 9.

Upgrading to Xcode 7 and the iOS 9 SDK resolved the issue.

0
source

Source: https://habr.com/ru/post/1235007/


All Articles