ios - Nested UIViewController is returned:'ing out too far -


i'm missing fundamental think. have story board looks like:

enter image description here

in short, have 3 of own controllers, embedded individually in uinavigationcontrollers.

i'll refer (my own) controllers 1, 2, , 3, left right. annotated picture show how hooked things up. created segue between controller 1 , 2, connecting disclosure indicator navigation controller containing #2. created segue between 2 , 3, connecting controllers , naming it. invoke segue programmatically using

[self performseguewithidentifier:@"openvalvesselector" sender:self]; 

for both controllers 2 , 3, connected both cancel , save navigation items exit item of containing controller.

the problem when have 3 opened, , select either cancel of save item, closes not view, 2 well, returning me controller 1. don't want that. i'm trying use 3 edit content 2. how returned: 2, instead of 1?

on broader note, i'm not entirely convinced i've done right thing having uinavigationcontrollers there. tried doing out uiviewcontroller containing 3, there no edit title/button items scene. i've read apple docs on view controller programming guide ios, level of detail doesn't seem there.

when use unwind segue, way runtime decides how far "back" unwind looking see, in first instance, where corresponding unwind method implemented. thus, if in view controller 3 , want unwind view controller 2, need implement unwind method in view controller 2.

(don't worry: still able unwind view controller 2 view controller 1.)


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -