Short answer: You can't. (Changed 14 April 2015: See edit at end)
Xcode 3 used to support interface builder plug-ins, but they dropped this in Xcode 4, and from what I've read, will not be adding it back.
You ALSO can't see/see custom outlets/properties of your custom UIView subclasses.
There IS a way to set those properties however. You select the custom view object, select the identity inspector, and look for a section titled "User Defined Runtime Attributes." You can add KVC key path references to properties or sub-properties of your views here, although the number of data types you can specify is limited. Also, if the key path is not a valid KVC reference at runtime, your program will crash with a cryptic, hard-to-find error to the effect that "the object MyCustomView is not key-value compliant for the key foo". If you forget that you set a user defined runtime attribute you can pull your hair out for hours trying to figure out the source of the error.
Edit: (14 April, 2015)
In Xcode 6, Apple added a new IBDesignable
attribute that you can add to your custom UIView classes (or NSView classes on Mac OS) that allows you to display the view right in your IB editor. There's also an IBInspectable
property that lets you see and edit certain attributes of your views from IB. This is like the "User Defined Runtime Attributes" option we've had since Xcode 4.0, but much cleaner since it shows you the attributes that you can change rather than you're having to type KVC keys, and risk crashing your app if you get something wrong. However, you can only specify a very limited number of types (String/localized string, number, color, boolean, point, size, rect, range, image, or a nil value.)
UIView
. – Gavin