SAP Enterprise Mobile platform development and Exploration Series 2-apps for multiple page navigation of Apple mobile apps

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.