I've been researching this problem all day and haven't found a suitable solution as yet.
I am trying to create a view similar to Notifications Centre in iOS7. There is a UISegmentControl
at the top, On tapping on any of the tabs take you to a different screen. Swiping left or right take you forward or back to the last screen.
I'm looking at implementing this in a UINavigationController that has a UIViewController embedded in it.
I tried to just perform a segue based on the selectedIndex of the UiSegmentControl
. This worked okay but crashes when going from one tab to another in a random order. Also, I don't get the swipe to go back. I don't need to swipe to go forward - just back.
I want to go to three different views - which all use the same viewController class (As these views do the same thing.
I'm using storyboards and iOS7 only.
Does anyone have any ideas how this could be done?