There are no hard and fast rules, but in general, the more complex the view, the more I will use IB. Very simple things like TableView in NavigationView will almost always be in code. More complex layouts, such as a detailed view with dozens of output labels, will usually be posted in IB.
However, if for some reason I do not want to include XIB in the final product, for example, if it is for a static library, I will start with IB, and then use NIB to convert the code .
source
share