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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -