How do I add custom UIButton to nib file in XCode?

I’ve just begin delving in to the world of iOS development. I am also a newbie to XCode. I’ve built several little test apps nows using the default UIComponents available by dragging and dropping them from the Objects library on to my .xib file and hooking up outlets and actions just to see how it all works. I wanted to take it to the next step and create my own custom painted button. I have a class named CustomButton that extends UIButton and I can programmatically add it to a view, but I would like to know how to drag and drop it on to a nib file so I can lay it out visually rather than programmatically. I know this is a beginner question but I’ve searched all night trying to find an example of how to do it with no success. Any help is greatly appreciated.

  • iOS devices as web server
  • Delete .xcdatamodel file from Xcode?
  • NSDictionary-like pretty-print in the debugger (or log)
  • Invalid Device State - Xcode/iOS Simulator error
  • How to redirect back to my iOS app after logging in on FitBit login page?
  • Where is Network link conditioner Prefpane in OSX Mountain Lion and Xcode 4.4
  • Solutions Collect From Internet About “How do I add custom UIButton to nib file in XCode?”

    Drop in a UIView into your nib and set its Custom Class to your UIButton subclass.

    enter image description here