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!