ios - How to reset the Navigation Controller in Xcode 6? -


im working on app ios, thats uses navigationcontroller switch betweens views. i'm trying return root viewcontroller third view.
have succeeded in main.storyboard, dragging button third root view, navigationcontroller continues stack.

is possible make command third view, return root viewcontroller, without navigationcontroller bar showing "back" button , keeping track , without reseting bools.

if want hide button navigation bar.then write code in third view's viewdidload or in viewwillappear-

self.navigationitem.hidesbackbutton=yes; 

and write code in body of action button.such as-

[self.navigationcontroller poptorootviewcontrolleranimated:yes]; 

let me know if works you.thank you


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -