I have a segmented control in the header of a navigation controller, I want to add an object to a table view controller thats also in this navigation controller.
Heres where my question comes in:
How do I segue from one [+] UIButton to 1 of 2 views, a different add view for each segmented control option. You can only hook up one segue from a UIBarButtonItem in the storyboard, but I wasn’t sure If i just hook one up and then change the code somewhere or if i have to build separate xib files (which I’m not familiar with, I’m new to iPhone dev) or how this would work!
Please help!
You make what I call “generic” segues that are not associated with an action/trigger. See my answer here: How to make and use generic segue
Make 2 of these segues, then in your IBAction method for your segmentedControl call
performSegueWithIdentifier:. For example: