Objective-C and Xib

Add a target to an existing XCode project

In the Add Target select Custom KeyBoard

Add the target like this:

Your project file directory should look something like this

Here myKeyBoard is the name of the added Target

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

Finally your project directory should look like this

make the keyBoardView.xib a subclass of keyBoardView

Make interface in the keyBoardView.xib file

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

keyBoardView.h should look like