K
K
Kanslay2019-04-09 12:16:09
iOS
Kanslay, 2019-04-09 12:16:09

How to make a custom navigation bar in an iOS app?

It is required to implement a navigation bar (PN) in the application.
I know that you can add a TabBarController, but, as I understand it, such a PN always looks about the same and you can’t add extra elements to a separate item there. Maybe I'm wrong.
The question is how to make a PN with complex items, in which you can add the background, pictures, animations I need.
It would also be nice to know how to switch between the screens associated with this PN by swiping to the side.
I would be grateful for any help from those in the know.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
doublench21, 2019-04-09
@Kanslay

Everything is possible!
There are tons of articles on google on the subject. Make your subclasses UITabBarController/UITabBar/UITabBarItem. Redefine the necessary methods, add the necessary subviews.
And as for transitions, it's quite a big topic, but again, it's well written. The UITabBarControllerDelegate delegate has two methods responsible for the transition:
https://developer.apple.com/documentation/uikit/ui...
https://developer.apple.com/documentation/uikit/ui...
Each of these methods must return the appropriate animator. How to create such? A bunch of articles.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question