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.
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];
相关文章推荐
- In an iOS 5 Storyboard, how do you push a new scene to the original view controller from a Popover?
- How do you copy the contents of an array to a std::vector in C++ without looping? (From stack over flow)
- 处理iOS报错: Warning “attempt to present ViewController whose view is not in the window hierarchy”
- [iOS]Failed to instantiate the default view controller for UIMainStoryboardFile 'Main'
- How to popup a UIPickerView from the bottom of a UIScrollView in response to UITextField selection
- How do I make my GUI plot into an axes within the GUI figure rather than inside of a new figure in M
- How to share text to Message in the app you are building(iOS platform)
- IOS 错误:Failed to instantiate the default view controller for UIMainStoryboardFile
- FAQ How do I write to the console from a plug-in?
- 【iOS】Illegal Configuration: The Label outlet from the ViewController to the UILabel is invalid. Outl
- How to stop UITableView from clipping UITableViewCell contents in iOS 7
- In C how do you redirect stdin/stdout/stderr to files when making an execvp() or similar call?
- How do I cover the “no results” text in UISearchDisplayController's searchResultTableView?
- FAQ How do I write to the console from a plug-in?
- From a response document, how do you update a field in the parent document?
- How to avoid Excel from prompting "The file you are trying to open, , is in a different format than specified by the file extension"? (转)
- iOS--错误集锦--Failed to instantiate the default view controller for UIMainStoryboardFile 'Main'
- How to pass List from Controller to View in MVC 3.
- How to view the schema class or attribute definition you first have to install the Active Directory Schema snap-in
- Learn how to Use UIPageViewController in iOS