when I started to work on companies that use storyboard. They defend the use of storyboard to keep your code clean and separate the View from Controller. And most of the ios programmers that I know prefer to manage the UI with storyboards. Interviewers always ask me if I know how to use the storyboard. I personally prefer the programmatically approach but companies and work colleagues not always will agree with you and this can make something cool become a nightmare.
Every companies I've worked for, who uses storyboards, never used segues. When working with a large project with 50+ developers, where people come and leave every now and then, having storyboards allows much faster onboarding and easier rationalization of the flow of the application. In the programmatic approach, you have to run the app, which can take up to 5+ mins each time you recompile, depending on the size of the app. Your example above is cool when it's your own personal project.
my opinion is if you will make big projects with more than 50 different screens - best way is using storyboard... because after release you need support this app and storyboard makes it faster - you can remember what is there... or it can be easier for understanding implemented UI design by some another developers that will be support it after release. but if you will use typical screens with standard ui in app - this style is very good. I already have few apps without storyboard and some that using it... cant say that one of these method is better... it is depends of your goals
I think the biggest problem of storyboards is the over usage of them. Someone put EVERY view controller in the main storyboard and this approach makes the storyboard itself totally unusable. It’s a common usage put table view cells directly in the view controller, so storyboards contains cells too. And segues in my opinion are evil. My approach is to have several storyboards that contain related view controller, single xibs for cells and custom reusable views. Then I created a library to have more uiview properties in interface builder (shadow color, rounded corners etc) so I have always a good idea of what I’m drawing. Finally I don’t use segue.
4 Answers
Benny
Upvotes from: rogers
mushe
Upvotes from:
jasper
Upvotes from:
rogers
Upvotes from: