You can also create your own custom segues if you have your own transitions you'd like to do. Built in segues include pushing onto a navigation view, showing a view modally, showing a view in a popover or just replacing the view. You just drag from a UI element in one scene to another scene and choose the type of segue to use. Segues are the transitions between scenes. You can design the UI in their view just like you would any NIB, and below the view you get a dock just like your NIB to hook up connections. You create them by dragging view controllers to your Storyboard. There are 3 key concepts with Storyboards: Scenes, Segues and Relationships. I have talked a lot about the potential features that could be enabled by the improvements introduced in Xcode 4 and Storyboards is a shining example of this. It is a higher level view that essentially lets you design and view the UI and flow of your entire app in one screen (and indeed you can zoom out on a Storyboard when you want to see your entire app on one screen). The easiest way to sum up Storyboards is "all your NIBs on one canvas". This ended up requiring a lot of what was effectively boilerplate code to control the flow of your app. Unfortunately it was hard to design and structure these, requiring the UI to be split across multiple NIBs and transitions to be handled in code. Apple obviously noticed that the majority of applications can be defined as screens and the transitions between them. The big new feature for iOS developers is Storyboards. So lets get cracking and see what's new and improved: Storyboards If Xcode 4.1 was the Lion release, Xcode 4.2 is the iOS 5 release (although many of the improvements apply to the Mac as well). But we don't really care about those in this post, what we care about is Xcode 4.2. ![]() The great Apple software release of 2011 happened a few weeks ago, bringing the likes of iOS 5 and iCloud. ![]() Looking for a freelance iOS/Mac developer? Get in touch! The Xcode 4.2 Review posted on
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |