M
M
mr_drinkens892016-09-02 17:42:25
Objective-C
mr_drinkens89, 2016-09-02 17:42:25

How to keep navigationBar in UITabBarController?

Good day.
The essence is this: the "framework" of the application is UITabBarController.
It has a top menu. So, in order not to produce buttons every time during the transition, how to create them once, and then use them in other views?
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
ManWithBear, 2016-09-02
@ManWithBear

Options:
- a custom navigationController that sets up items on push
- a custom navigationBar that does pretty much the same
- a custom viewController that overrides the navigationItem and returns a custom one.
Each option has its pros and cons.
But if these buttons do not belong to the current controller, but to the application as a whole, then it is more logical to override the tabBarController, in which to resize the childView and add your own navigationBar.

A
Anton Marunko, 2016-09-02
@Antonio-banderas

in other words or in more detail?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question