更新到 iOS9 后 prepareForSegue 冻结 [英] prepareForSegue Freezes after updating to iOS9

查看:54
本文介绍了更新到 iOS9 后 prepareForSegue 冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去 24 小时内我一​​直在努力解决的奇怪问题.

Strange issues that I've spent the last 24 hours trying to fix.

我有一个运行良好的应用程序.我现在为 iOS9 更新了 Xcode,其中 5 个 push segue 之一不会执行该操作.我可以在 'prepareForSegue' 内断点,一切似乎都运行正常,但一旦退出该功能,手机 CPU 就会达到最大值并就坐在那里.GUI 不做任何事情.我尝试了很多方法,包括创建一个新的 viewcontroller 并使用相同的 segue 链接,一切正常.它只有一个视图控制器,我无法执行performSegueWithIdentifier".我已经评论了这个 viewcontroller 中的所有代码,但仍然没有.与那些确实有效的相比,它没有什么特别之处.我现在完全被困住了,有人有想法吗?

I have an app which was working perfectly fine. I updated Xcode for iOS9 now one of 5 push segues wont perform the action. I can breakpoint within 'prepareForSegue' and everything appears to run correctly, but soon as it exits the function the phone CPU maxes out and just sits there. The GUI doesn't do anything. I've tried many things from creating a new viewcontroller and using the same segue link and everything works. Its only this one viewcontroller I cannot perform a 'performSegueWithIdentifier' to. I've commented ALL code from this viewcontroller and still nothing. Theres nothing special about it compared to those that do work. I'm totally stuck now, anyone have ideas?

抱歉,如果我含糊不清,请在此处询问我没有注意到的任何细节.

Sorry if im being vague, please ask for any details I've failed to note here.

谢谢院长

推荐答案

所以在完全重建问题视图控制器后,我已经确定了错误的原因.确实很奇怪,我在视图上有一个 UITextView,默认文本为Notes..."......删除它,一切正常.不敢相信这是原因,但是嘿....一定是 iOS9 中的一个错误,默认文本通过故事板放置在文本视图中.

So after completely rebuilding the issue view controller i have identified the cause of the error. Very strange indeed, i have a UITextView on the View with default text of 'Notes...'......remove this and all works ok. Cant believe this is the cause but hey....Must be a bug in iOS9 where default text is placed in text view's via the storyboard.

Thought id 将我的发现放在其他人遇到类似问题的情况下

Thought id place my findings incase someone else comes across similar problems

这篇关于更新到 iOS9 后 prepareForSegue 冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆