I am creating a tutorial inside my iphone app. I am wondering, do I need to create a new .h .m and .xib file for every view? Or can I hook up multiple .xib files to the same .h file , than use the .m file to switch between the views?
Example
I have a Table View being displayed with multiple options. The user selects an option and that tutorial begins in a different view. Can I use that new views .h .m files to control multiple .xib files, or does each view need their own view controller.
Thanks
You generally should have a view controller per screen if the screen contains active
UIControlelements likeUIButton. So if first screen has 3 buttons, second has 2 buttons and all of them perform different selectors, then you’d better stick to having a view controller per view.For the case where user selects an entry from UITableView, you absolutely definitely want to use a separate view controller.