After getting familiar with the iOS development environment, we need to study how to design multiple pages in IOS applications.ProgramIt is composed of multiple interfaces. There are three main implementation methods for navigation between multiple pages in IOS:
1) Use uiviewcontroller
2) use uinavigationcontroller
3) Through storyboard, xcode also provides a master-Detail Template
The simplicity of the three methods is also improved in sequence. storyboard is very simple, and the framework is ready after the project is created.
However, it is recommended that you familiarize yourself with the previous two methods. Although the manual step-by-step creation process is a little cumbersome, it will also help you better understand the basic knowledge of IOS applications.
I made a small example of a Windows application, using uiviewcontroller for navigation. On Windows, there is a toolbar to implement navigation and switching between two pages.
In this way, the basic framework for more complex applications will come out.
Main steps of the development process:
1) Create an empty application
2) create mainwindow. XIB
3) create switchviewcontroller, yellowviewcontroller, and blueviewcontroller.
4) Create blueview. XIB, yellowview. XIB
Modify the file owner to the corresponding viewcontroller and connect to the view outlet of the controller.
5) add uiviewcontoller in mainwindow. XIB, modify the class of file owner, add view, toolbar, item, and action.
Note: Set maininterface to mainwindow in the application attribute of the project.