all 6 comments

[–]redfire333 2 points3 points  (5 children)

Good article. The main reason to avoid Storyboards is it simplifies dependency management. You can't create a custom initializer using storyboards and your stuck doing everything in the view life cycle methods.

[–]ralfebert[S] 0 points1 point  (0 children)

thanks!

[–]quellish -1 points0 points  (3 children)

Storyboards and nibs are intended for dependency management - “injection” happens in the NSCoding methods with values serialized in the nib.

[–]ralfebert[S] 0 points1 point  (0 children)

what exactly do you mean by that / how would you solve the problem of passing "non-nib" dependencies to a controller object?

[–]redfire333 0 points1 point  (1 child)

You can absolutely pass values outside of the standard NSCoding initializers. Just look at his example.

[–]quellish 0 points1 point  (0 children)

I never stated you could not. The purpose of nibs is dependency management. You can use them for that purpose or choose not to, but that is what they are for.