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.


    navigation stack of NavigationView

    Pythonista
    2
    2
    1139
    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.
    • ?
      A Former User last edited by

      Can I get the top view? I want to make sure that I have return to the home page.

      mikael 1 Reply Last reply Reply Quote 0
      • mikael
        mikael @Guest last edited by

        @lpl, this should work:

        def at_start(nav_view):
          nc = nav_view.objc_instance.navigationController()
          return nc.topViewController() == nc.viewControllers()[0]
        

        See this thread for more comprehensive set of functions.

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