ios - UIViewController pushed onto UIController embedded in UITabBarController not calling delegates -


i have uitabbarcontroller has 4 uiviewcontrollers. these set in app delegate , behaves expected.

i have set first uiviewcontroller uitabbarcontrollerdelegate , works fine too; tabs pressed shouldshowviewcontroller fires expected.

inside first uiviewcontroller, first tab, buttons. 1 pushes uiviewcontroller using standard:

[self.navigationcontroller pushviewcontroller:vc animated:yes]; 

this works fine: new uiviewcontroller , it's view appear expected.

however, when press tab button shouldshowviewcontroller function called (as expected) , passes reference first tab (as expected) child uiviewcontroller found. is, viewcontroller.navigationcontroller.viewcontrollers empty array (count == 0).

to debug implemented uinavigationcontrollerdelegate , assigned navigationcontroller same class uiviewcontroller , tab controller. fires when called tab controller not view controller.

i've tried can think of find reference topmost visible view controller i'm stumped; seems vanish black hole. i"m ready try keep stack manually trying keep parallel array system functionality built seems setup maintenance mess. using ios6.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -