Changes

Jump to: navigation, search

Using Xcode Storyboarding (iPhone iOS 5)

8 bytes added, 20:48, 1 February 2016
m
Text replacement - "<google>BUY_IOS5</google>" to "<htmlet>ios9_upgrade</htmlet>"
<googlehtmlet>BUY_IOS5ios9_upgrade</googlehtmlet>
Storyboarding is a feature built into Xcode version 4.2 and later that allows both the various screens that comprise an iOS application and the navigation path through those screens to be visually assembled. Using the Interface Builder component of Xcode the developer simply drags and drops view controllers onto a canvas and designs the user interface of each view in the normal manner. The developer then drags lines to link individual trigger controls (such as a button) to the corresponding view controllers that are to be displayed when the control is selected by the user. Having designed both the screens (referred to the in the context of storyboarding as scenes) and specified the transitions between scenes (referred to as segues) Xcode generates all the code necessary to implement the defined behavior in the completed application. The style of transition for each segue (page fold, cross dissolve etc) may also be defined within Interface Builder. Further, segues may also be triggered programmatically in situations where behavior cannot be defined graphically using Interface Builder.
The new Storyboard feature introduced in Xcode 4.2 allows for the navigational flow between the various views in an iOS application to be visually constructed without the need to write code. In this chapter we have covered the basic concepts behind storyboarding and worked through the creation of an example iPhone application using this feature.
<googlehtmlet>BUY_IOS5ios9_upgrade</googlehtmlet>

Navigation menu