How do you display custom UIViews in InterfaceBuilder?

I seem to enjoy designing new UIViews and UIControls that implement their own -drawRect: method. This work well for me, especially when composed using UIViews in Interface Builder.

But composing them in Interface Builder is annoying because they just show up as boring plain rectangles.

It would be great if the views would actually render themselves as the built-in controls do.

Is there any way I can structure my project so that Interface Builder will render my custom views?

How do you display a custom UserControl as a dialog?

How do you display a custom UserControl as a dialog in C#/WPF (.NET 3.5)?

How do you detect touches in specific UIView when sliding finger across mutiple UIViews

Hi hope you can help with this. The scenario I am trying to solve is I have several UIViews as subviews of a master UIView. What I want to be able to do is highlight a views rect by lets say changing

xcode interfacebuilder Objects linked to custom class in Inspector?

In Xcode(latest version) Interfacebuilder, you can link objects to code. I have created one a class: @interface FileChangeController : NSObject But it is not listed in custom class, in Interfacebuilde

How do I add a UITtoolbar to my main view.nib?

How do I add using the InterfaceBuilder?

How do you display hyperlinks without an underline?

How do you display hyperlinks without an underline ?

How do you wrap multiple UIViews in a rounded rectangle for sorting (picture attached)?

In the following picture, how do you have Multi-option picker and the horizontal scroller in the same white rounded rectangle? It looks great for sorting, and I’d love to implement something like that

How do I enable user interaction in two overlapped UIViews?

I have two overlapping UIViews, and I want both to respond to user touches. At the moment, only the last view that was loaded responds. How do I get both to respond to touch events?

How do you display the filename of the file you are working on in vim?

How do you display the filename of the file you are working on in vim?

How do you insert msi into custom Windows install?

How do you insert msi installers into a custom made (nLite) Windows XP install?

How do you create a custom attribute for MS Test?

If you want to create a custom attribute for MS test (say [Repeat(3)] how would you do that?


In order to do this, you actually have to create a plug-in for Interface Builder that uses your custom class. Once you create and install your plug-in, you will be able to drag and drop instances of your class (your view) onto another window/view/whatever just like any other control. To get started with creating IB Plug-Ins, please see the Interface Builder Plug-In Programming Guide. Also, I recommend taking a look at Aaron Hillegass’s book, Cocoa Programming for Mac OS X. As well as being very well written and easy to understand, it has a chapter on creating your own IB Palette controls.