Getting Started with iOS development: tiled navigation-based on split-screen navigation and case implementation

Source: Internet
Author: User
Tags split

The tiled navigation mode is a very important navigation mode. Generally used for simple flat information browsing or tasks. Flat information means that there is no subordinate hierarchical relationship between the information, such as China's cities in Beijing, Shanghai and Harbin is a flat information, and the relationship between Harbin and Heilongjiang Province is subordinate to the hierarchical relationship, hierarchical relationship information can be used in tag navigation and tree-shaped structure navigation.

Introduce tile navigation from one case to the beginning. If I want to develop an iphone based "gallery" application, there are only 3 paintings (the left is Picasso-weeping, the image of Leonardo da Vinci-Mona Lisa, right pictured is Rodin-thinker) included in the application. Because there is no hierarchical relationship between the 3 paintings, they are flat.

Implementation based on split-screen navigation

Based on the split-screen navigation is the main implementation of the tile navigation mode, mainly involved in the controls are: Split-screen control (Uipagecontrol) and ScrollView, the split-screen control is the iOS standard control.

There are two kinds of gestures based on the split-screen navigation, one is to click on the left side (top) or the right (bottom) to achieve the screen, the other is to use the hand on the screen slide to achieve the flip screen. The total number of screens should be limited to 20, and the dots of more than 20 split-screen controls will overflow. In fact, if one application is more than 10 screens, it is not convenient to use the tiled navigation mode based on the split-screen navigation at this time.

Below we adopt the "gallery" application based on the split-screen navigation mode. Use the single View application template to create a project named Pagecontrolnavigation. Drag the ScrollView and Pagecontrol controls to the design interface, place them in the appropriate place, and set the view background to black by properties.

Related Article

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.