I am making a simple application and will require to actually load different views on a button click.
The thing is I want to separate the code for each view into it's own class as I don't want it all put into one controller.
Can anyone tell me the best way to do this and also the possibility to show how to switch between view开发者_如何转开发s?
Thanks
Have a look at UITabBarController. Assign a view controller for each tab and it should behave as you want. There are quite a few tutorials on creating it. You can look at this.
精彩评论