Sounds like it should work, but if it doesn't try the following: 1. Click the segue that doesn't work and give it an identifier. Let's say it's PopoverToNewSegue.
-
In your implementation file for the popover view controller, add an action when the button is clicked.
-
That function should return void and add the following line: [self performSegueWithIdentifier:@"PopoverToNewSegue" sender:self];
That should get your segue running. I've noticed that segues don't always work like you expect them to, but this one works for me without fail.
本文提供了解决iOS应用中segue功能不工作的方案。通过为无法工作的segue添加标识符,并在控制器中添加相应的点击事件处理函数,可以确保segue正确执行。实践表明,这种方法能够可靠地启动segue。

被折叠的 条评论
为什么被折叠?



