objective c - iOS Development - Using rootViewController correctly -
i have been learning ios development few days now. @ moment, have questions on how rootviewcontroller used. searched web 3 hours yesterday looking answer turned quite few results never answered question.
i trying learn program app using code (no storyboards/xib files). trying understand how switch between views without using uinavigationcontroller. in project have main delegate creates window, initializes main view controller (which loads separate view well) , adds rootviewcontroller.
my first view has button calls function in controller switch next view. here question arises: switch main rootviewcontroller next view or load next view subview of rootviewcontroller? rootviewcontroller supposed encase views application? (i think how uinavigationcontroller works)
i have gotten switching of rootviewcontroller work in app, want make sure there isn't other way suppose manage views.
i not switch rootviewcontroller, think should remain stable. add subview, or can present modal view.
and of course, can change rootviewcontroller point new view if that's how want it.
Comments
Post a Comment