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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -