Upload
azukisoft-pte-ltd
View
149
Download
0
Embed Size (px)
DESCRIPTION
Brief introduction to iOS Storyboard
Citation preview
iOS Storyboard
What is it?A new feature added to iOS 5Makes managing of screens and transitions easierLess code to writeHurray!!!
StoryboardThose areas marked in red in the previous slide are the icons indicating the transitionThey are known as SeguesPronounced as Segway
Things to rememberAlways remember to select the User Storyboards option when creating a new projectFile extension is .storyboard
NextRemember to set a storyboard to be the initial view controllerGo to View -> Utilities -> Show Attributes Inspector
LastAdd Navigation View to your initial view controllerSelect your initial viewGo to Editor -> Embed In -> Navigation Controller
Creating New StoryboardJust drag a new view controller to the storyboard screen
Link storyboard screens together part 1
Just select your buttonWhich will trigger the transitionThen right click and drag the Trigger Segues outletAnd pull it to the storyboard that you want to link
Link storyboard screens together part 2
Using codeYou need to give the segue an identifierThen write some code
The code to write[self performSegueWithIdentifier:@"SecondViewSegue" sender:self];
PRACTICAL TIME