In an iOS 5 Storyboard, how do you push a new scene to the original view controller from a Popover?

宋丰
2023-12-01

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.

  1. In your implementation file for the popover view controller, add an action when the button is clicked.

  2. 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.

[self   performSegueWithIdentifier:@"seguePromotion" sender:self];


 类似资料:

相关阅读

相关文章

相关问答