Have you ever thought about… Storyboard?

Have you ever thought about… Storyboard?

StoryBoard is a new tool available in the most recent versions of xCode  that allows the developer see graphically how will be the screen transition (where the screen is a scene) through some kind of funny arrow  ( the graphic representation of segue) .

It’s quite simple, very visual. But beware! The simpler things are what complicate the most!

What if you have such huge application with a lot of screens and functionalities?  Unless you have a huge screen, it’s going to be a bit tricky get track of every screen, mainly if you are in a hurry and have a tiny, invisible bug to correct.

Off course you can pass data through the segue with the method “prepareForSegue:sender:”, which is invoked on the view controller when a segue is trigged. This way, you can customize the next viewController before it appears on the screen.

You can programmatically force transitions with this method:  “performSegueWithIdentifier:sender:”, off course, on the viewController.

Take care when you are using scenes on iPad, it can handle multiples screens at once, it’s  not going to work  as you expect on iPhone. And with scenes, you can manage most of the behaviors through the dock, which display icons representing the top level objects of the scene  and, for me the most important, it can make action and outlets connection between scenes and ViewControllers.

 

Apple has a quite good documentation of the Storyboard and its components. Worth a lot get a moment and take a look :: https://developer.apple.com/library/ios/documentation/General/Conceptual/Devpedia-CocoaApp/Storyboard.html