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

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章