I have a UIViewController with a UINavigationController and a tab bar in it.
when a button is clicked I want the view to change without changing away from the UINavigationController or the TabBarController.
I tried using a ModalViewController but it hides tab bar and navigation bar.
How can I achieve this? Should I create a new ViewController?
Also What am I supposed to do if I want that view to appear only on some part of the screen?
create another view in the same class and then add it to your viewController by writing
and make it hide by
and show it when user taps on button by
EDIT: For view to appear only on some part of the screen.
set the frame of the newView as