[英]Storyboard “show” segue doesn't work (only in one case) after updating to xcode7
I have a simple storyboard show segue with id temp
and I fire it from the first view controller with this line of code self.performSegueWithIdentifier("temp", sender: self)
. 我有一个简单的演示图板,显示带有id
temp
segue,并使用此行代码self.performSegueWithIdentifier("temp", sender: self)
从第一个视图控制器self.performSegueWithIdentifier("temp", sender: self)
。
I put a breakpoint in the prepareForSegue
function and everything goes fine, but instead of open the destination view controller it remains on the first one, without reacting to any tap. 我在
prepareForSegue
函数中设置了一个断点,一切正常,但没有打开目标视图控制器,而是将其保留在第一个视图控制器上,而不会对任何轻按做出反应。
I checked the ID, recreated the destination view controller and the segue, but nothing changes. 我检查了ID,重新创建了目标视图控制器和segue,但是没有任何变化。
PS: Everything was fine before updating to xcode7 and iOS9. PS:在更新到xcode7和iOS9之前,一切都很好。
I had same problem on my app. 我的应用程序遇到了同样的问题。 After hours of headache I found the problem was related to an
UITextView
in destination view controller. 经过数小时的头痛之后,我发现问题与目标视图控制器中的
UITextView
有关。 I don't now why but deleting that UITextView
and recreating it solved the issue. 我现在不为什么,但是删除该
UITextView
并重新创建它可以解决此问题。 I think is something related to conversion and UITextView
but I cannot say what. 我认为与转换和
UITextView
有关,但是我不能说什么。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.