Forum Archive

NavigationView Tutorials?

GenericUser

Hello,

I would like to do some stuff with NavigationView, but I have problems of managing the view stack. I know the NavigationController from iOS, but I can't find ways to access subviews in the initial view of the stack (which you can edit by using the Ui editor) in Pythonista. How can I access subviews in the root view of NavigationView? Can I place bar button items in the NavigationBar? Otherwise, awesome stuff. Pushing a table view and having it use its own class works fine so far.

Regards

ccc

The ui-tutorial has a NavView example.

GenericUser

Thanks. But the tutorial still does not give insights on how to access the root views' sub views. However, good start to know how to place bar button items.

JonB

you cannot (easily) access the views pushed to a navigationview (without perhaps using objc). You use push or pop to add/remove views.

The idea generally is that a view should be self sufficient, so if the user pushes a button, you would use sender to know where you are.

For some alternate ways to handle views coming/going, see

https://forum.omz-software.com/topic/1324/navigationview-on-screen
and
https://forum.omz-software.com/topic/2371/sub-views-of-navigationview-are-not-accessible/6

TutorialDoctor

I have just posted a navigation view tutorial