objective c - Accessing the same view controller in a Storyboard by a subclass -


hullo, create new target project without overcrowding main view controller #ifdef's. thinking of splitting functions weaker superclass , have new target use top one. how configure new target attach top view controller view controller in storyboard instead of bottom 1 in old target?

you have invoke , set view controller manually so:

    uistoryboard *storyboard = [uiapplication sharedapplication].keywindow.rootviewcontroller.storyboard;     uiviewcontroller *myviewcontroller = [storyboard instantiateviewcontrollerwithidentifier:@"yourviewcontrolleridentifier"];     [[uiapplication sharedapplication].keywindow.rootviewcontroller presentviewcontroller:myviewcontroller animated:yes completion:nil]; 

Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -