且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iOS9导航栏后退按钮不起作用

更新时间:2023-12-03 10:25:28

最后,问题已解决. 我已经创建了一个新项目,并使用相同的方法执行segue,并且完美地进行了segu.所以我排除了Xcode可能导致问题的可能性.而且我发现我已经通过NSRunLoop在我的应用程序代表处为应用程序传递了设备的令牌,我不知道为什么会导致这种奇怪的问题,我决定将设备令牌保存在NSUserdefault中,然后在主页上获取它.并将其解析到服务器.因此,在我现在拿走NSRunLoop之后,它现在就像魅力一样.

Finally, the problem is solved. I have been create a new project and use the same method to perform segue and it segued flawlessly. So I excluded the possibility of Xcode might cause the problem. And I found that I have passed the device token for apps at my app delegate by a NSRunLoop, I don't why it will cause such a weird problem, I decide to save the device token at NSUserdefault, then get it at the home page and parse it to server. So it works like a charm now after I take away the NSRunLoop now.