We also need two more nib files, one for each of the two content views we created. To create them, open the "Resources" folder in the "Groups and Files" panel, so that we create them in the right place, and then press ␣N or select "New File ..." in the "File" menu again. This time, when the assistant window appears, select “User Interfaces” under the iPhone OS header in the left pane.
Select the icon for the View XIB template that will create the content presentation item, and then click Next. When prompted for the file name, enter BlueView.xib. Repeat the steps to create a second nib file named YellowView.xib. Once you do this, you have all the files you need. It's time to start all together.
source share