omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    NavigationView Tutorials?

    Pythonista
    4
    5
    4997
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • GenericUser
      GenericUser last edited by

      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

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by

        The ui-tutorial has a NavView example.

        1 Reply Last reply Reply Quote 1
        • GenericUser
          GenericUser last edited by 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.

          1 Reply Last reply Reply Quote 0
          • JonB
            JonB last edited by

            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

            1 Reply Last reply Reply Quote 0
            • TutorialDoctor
              TutorialDoctor last edited by

              I have just posted a navigation view tutorial

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors