Objective-C and Xib

Add a target to an existing XCode project

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

In the Add Target select Custom KeyBoard

http://i.stack.imgur.com/17jG0.png

Add the target like this:

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

Your project file directory should look something like this

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

Here myKeyBoard is the name of the added Target

Add new Cocoatouch file of type of type UIView and add an interface file

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

Finally your project directory should look like this

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

make the keyBoardView.xib a subclass of keyBoardView

http://i.stack.imgur.com/7Fey1.png

Make interface in the keyBoardView.xib file

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

Make connections to from the keyBoardView.xib to keyBoardView.h file

keyBoardView.h should look like