I am converting (trying to and learning at the same time) a Android Java app to iPhone. I have made test scenarios for most of the sections to make sure I have an idea how to proceed and I am getting close to actually starting.
The app starts on a main menu and from there goes to multiple sub menus (about 8 of them). Most of the sub menus goes to a single screen that performs an action, like data display or editing.
I have started the prototype with a Nav Controller and all the views on one XIB. Now the question is do I create another XIB for each of the sub menus and each of those would have views, or what? I have yet to find one article that explains the memory management and what the recommended way to do this is.
Thanks for any ideas and thoughts!
The reason you separate different sections into multiple XIB files is twofold:
Basically, it doesn't matter too much for most applications which direction you go. Do whatever works for you. It is generally recommended to split the views used by view controllers out into different files (Xcode does this automatically a lot of the time). The view controllers do the lazy-loading of the additional XIB files for you (you just have to set the NIB Name
of the view controller), so it doesn't take much effort at all.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.