Reputation: 245
I am adding a UIViewController as PresentViewController using Tab Bar, then the view looks like:
After selecting any option, I need to hide the Tab Bar, but my screen looks like:
Kindly suggest me the solution for it. I am adding a view controller:
self.presentViewController(responseSelector, animated: true, completion: nil)
Upvotes: 4
Views: 714
Reputation: 245
I got solution for it.
let responseSelector =
ResponseSelectorViewController(responseId:currentResponse.title,
delegate:self)
responseSelector.modalPresentationStyle = .OverCurrentContext
self.presentViewController(responseSelector, animated: true, completion: nil)
I have change 1 line of code in this.
responseSelector.modalPresentationStyle = .OverFullScreen
Upvotes: 3
Reputation: 63
I have used the line below in the ViewWillAppear()
function:
self.tabBarController!.tabBar.isHidden = true
And it works great.
Upvotes: 1