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

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -