Forum Archive

navigation stack of NavigationView

[deleted]

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

mikael

@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.