Create a XIB file

Xcode Menu Bar > File > New > File.

Select iOS, User Interface and then “View”:

http://i.stack.imgur.com/RSkzu.png

Give your XIB a name (yes, we are doing a Pokemon example 👾).

Remember to check your target and hit “Create”.

http://i.stack.imgur.com/oJ1s1.png

Design your view

To make things easier, set:

http://i.stack.imgur.com/Gy0KD.png

Click on the Size Inspector and resize the view.

For this example we’ll be using width 321 and height 256.

http://i.stack.imgur.com/PNIek.png

Drop some elements into your XIB file like shown below.

Here we’ll be adding an Image View (256x256) and a Switch.

http://i.stack.imgur.com/6u3pd.png