Advantages
of using Storyboards instead of xib files in iOS
Storyboarding
is an awesome newly added feature in iOS
5 that will save you a lot of time for building the user interfaces of your
apps.
Use
of Storyboard can help in reducing the amount of line of code for page
rendering (ie. code to write to go from one screen to next).The whole
application uses a single storyboard that contains the UI designs of all of
these view controllers and also keep tracks of relationships among them.
The Storyboards have a lot of advantages over regular nibs:
●
Storyboard
has a better conceptual overview of all the screens in the app and the
connections between them. As the entire design is in a single file,It’s easier
to keep track of everything rather than spread out over many separate nibs(xib
files).
●
The
storyboard describes the transitions between the various screens. These
transitions are called “segues” and you create them by simply ctrl-dragging
from one view controller to the next view controller.
●
Storyboards
make working with table views a lot easier with the new prototype cells and
static cells features. Its very easy to design the table views completely in
the storyboard editor.
●
A sole container for all the view
controllers (View
Controllers, Navigation Controllers, etc)
●
Its act like a manager for connecting
those views.
●
Communicate among the views by Segues.
●
It provides
a complete look at the flow of the application that you can never get
from individual nib files floating around.
●
A
reducer of all the "clutter" that happens when you have several
controllers each with it's own nib file.
●
Its
a powerful tool in Xcode that allows you to build an App without writing a single line of code. A functional prototype
can be created in a matter of hours.
Limitations
of Storyboards:
●
Its
not supported for iOS 4 and below
●
Storyboards
only work on devices running iOS 5 or above.
●
If
your project requirement is such that you need to design your interface
programmatically, then the storyboard has minimum usage.
Comments
Post a Comment