I have a tabBarController with 2 tabs: tab1 and tab2. I have a button named pressButton in tab1. When pressed it automatically switches to tab2. How do I present tab2 modally upon switching tabs?
The thing is I want to keep both tabs visible at the bottom after the modal presentation. The docs say that a modal presentation will completely take over the entire screen. I don't want the modal to hide the bottom tabBarController tabs. How would I do this?
@IBOutlet func pressButton(sender: UIButton){
self.tabBarController!.selectedIndex = 1
}