The iOS 5 Programming series is recommended to demonstrate the use of common iPhone view objects.

Source: Internet
Author: User
IOS 5 Programming (1)-Use of image views, slide blocks, and step controls (source code download)

The example app below demonstrates the use of the following controls. You can use the slider, step control, and button to control playing an animation in the Image view.

    • Uiimageview)
    • Slider (uislider)
    • Step control (uistpper)

 

IOS 5 Programming (2)-Use of uiswitch, uisegmentedcontrol, and uiwebview controls

In this example, the iOS app demonstrates the use of the following controls to obtain the web content of a specific URL from a third-party website and display it in the uiwebview control.

    • Uiswitch)
    • Uisegmentedcontrol)
    • Web View)
IOS 5 Programming (3)-create mode switching, multi-scenario and switching)

This article demonstrates the use of storyboard in multiple scenarios and switches.

When using the template single view application to create an iPhone app, it only contains one View Controller and one view, that is, there is only one scenario. However, it is easy to add scenarios in storyboard.

 

The running interface of this example app is shown in:

 

 

IOS 5 Programming (4)-popover)

 

Currently, popover is unique to iPad devices (not supported by the iPhone ). You only need to touch the outside of the pop-up box to close the pop-up box.

 

In storyboard's interface builder, drag the edit button (initial view) to the target View Controller (that is, the pop-up window) icon. In the displayed switch type menu, select the popover type, as shown in:

 

IOS 5 Programming (5)-tool bar uitoolbar and date selector uidatepicker

 

This article demonstrates the application of the tool bar uitoolbar and the date selector uidatepicker. The example app running interface is as follows:

 

 

Tool bar uitoolbar-It is usually displayed at the bottom. It is used to provide a set of options for users to execute some functions, instead of switching between completely different UI interfaces. It is used to switch between different UI interfaces, is the responsibility of the tab bar.

Date selector uidatepicker-Generally, the value changed event is connected to an operation method to read its return value, and an nsdate object is returned.

 

Not complete to be continued!

 

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.