Tab Bar not hiding using UIViewController

Viewed 561

I am adding a UIViewController as PresentViewController using Tab Bar, then the view looks like: enter image description here

After selecting any option, I need to hide the Tab Bar, but my screen looks like:enter image description here

Kindly suggest me the solution for it. I am adding a view controller:

self.presentViewController(responseSelector, animated: true, completion: nil)

2 Answers

I have used the line below in the ViewWillAppear() function:

self.tabBarController!.tabBar.isHidden = true

And it works great.

Related