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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -