Switch views in UITabBar View

I created a UITabView application. Each view selected in the panel is a separate controller with its own pen file. I successfully switch between them.

At first glance, I have two buttons (look at the screenshot). When I click on them, I want to switch to other views that are parts of the current view controller. I use:

[self presentModalViewController:anotherViewController animated:NO];

This switches the view, but hides the UITabBar. How to save the panel on the screen after switching?

alt main alt after_click

PS Sorry for the blurry image. I have no right to share information.

+3
source share
2 answers

, , . , , UINavigationController. , , UIViewController UINavigationController, , - .
. http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UINavigationController_Class/Reference/Reference.html

+5

use: tabBarController.selectedViewController = newViewController

edit: UINavigationController .

+3

Source: https://habr.com/ru/post/1729790/


All Articles