ios - Is there a way to pop back to previous navigation controller? -


i have base nav controller has tab bar controller nested inside. inside tab bar controller nav controller nested in it. if i'm in child nav controller can pop root view in 1 of views takes me root view of child nav controller. there way pop first nav controller?

if using storyboard can use unwind segue approach works me

enter image description here

just control + drag "pop main screen" uibutton exit (green button @ bottom of scene) select unwind method declared in first screen title "main" e.g.

-(ibaction)customunwind:(uistoryboardsegue *)sender {      nslog(@"unwind successful");  } 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -