UINavigationController with custom vertical button bar

I need to implement a navigation-based application with a customizable button bar that remains at the vertical screen size, similar to the Reeder iPad application (see Reeder screenshot ). What is the best way to achieve this result? I thought about adding a panel as a UINavigationController subtask and calling its methods (e.g. pushViewController: animated :) via the parentViewController link from my button bar controller, but this seems a bit confusing.

+3
source share
1 answer

It may work, but it is dangerous: set the conversion of the CALayer object to a UINavigationBar. A conversion that rotates the bar to “-1 * M_PI_2” will be almost correct; you may need to translate it a few pixels to get the correct position.

Definitely works, but more effort: visualize the user navigator, implement the delegate protocol from the UINavigationController and listen to the navigation changes and implement your own animations inside callbacks.

(I made the last method to create custom UINavigationBars - it works fine)

, /, , . UIView, , : " , ", YES.

0

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


All Articles