Laying out a view
In order to make a GUI, we need a strategy. For example, how do we control that a certain button should have the red color? How do we ensure that the background color changes when the user taps on the button? How do we position our different UI elements so that they look reasonable across different devices with different screen sizes, such as the iPhone and iPad? In order to answer all these questions, we need a way to control the UI. Apple offers us some tools and patterns that have been developed over time. Some of the concepts are similar to other platforms and some are specific when you develop applications for Apple devices.
Setting up a new iOS project
IB is a tool offered as part of Xcode. It is a tool for designing and laying out a UI. It helps the creator visualize what the interface will look like when running the application and also enables faster prototyping when a UI is needed.
Go ahead and open Xcode if it is not already open. If you...