UX Designer Question:
Download Questions PDF

Tell me what's your preference when writing UI's? Xib files, Storyboards or programmatic UIView?

Answer:

There's no right or wrong answer to this, but it's great way of seeing if you understand the benefits and challenges with each approach. Here's the common answers I hear:

☛ Storyboard's and Xib's are great for quickly producing UI's that match a design spec. They are also really easy for product managers to visually see how far along a screen is.
☛ Storyboard's are also great at representing a flow through an application and allowing a high-level visualization of an entire application.
☛ Storyboard's drawbacks are that in a team environment they are difficult to work on collaboratively because they're a single file and merge's become difficult to manage.
☛ Storyboards and Xib files can also suffer from duplication and become difficult to update. For example if all button's need to look identical and suddenly need a color change, then it can be a long/difficult process to do this across storyboards and xibs.
☛ Programmatically constructing UIView's can be verbose and tedious, but it can allow for greater control and also easier separation and sharing of code. They can also be more easily unit tested.
Most developers will propose a combination of all 3 where it makes sense to share code, then re-usable UIViews or Xib files.

Download UX Designer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell us what is the best practice when it comes to designing icons for a mobile product? Which are better for scanning? What is the difference between a filled or outlined icon?Suppose a product manager in your company reports that the application is crashing. What do you do?