ios - Override navigation controller back button -


i have uiviewcontroller called detailviewcontroller push homeviewcontroller.

in detailviewcontroller there container display subview a, b , c.

if tap button in navigation bar, navigation pops homeviewcontroller, expected. i'd override button if container displaying subview b, container updates show subview (and likewise, subview c goes subview b). , if we're displaying subview pop homeviewcontroller expected.

essentially, need able tap button force navigation not pop previous view. possible?

i know hide button , replace custom bar button item don't want that. want keep exact styling of native button.


Comments

Popular posts from this blog

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -