您的位置:首页 > 移动开发 > IOS开发

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

2011-11-22 09:23 981 查看
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.

[self   performSegueWithIdentifier:@"seguePromotion" sender:self];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐