XCode Storyboard How to access all view controllers inside the storyboard -
in single view application, inside storyboard if i've multiple view controllers different classes assigned them,
how can access of them inside appdelegate while still know kind (class) of viewcontroller this?
for instance root view controller can access
blacktimer *vc = (blacktimer *)_window.rootviewcontroller;
how other sibling view controllers?
create ivar of sibling uiviewcontrollers inside app delegate , later whenever invoke view controller alloc init ivar inside app delegate. can reference app delegate anywhere using
[uiapplication sharedapplication] delegate];
Comments
Post a Comment