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

来源:互联网 发布:航班查询系统c语言 编辑:程序博客网 时间:2024/05/17 08:41

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];


原创粉丝点击