Question

I'm making a custom UI element class for iPhone. It'll cool to edit my class on Interface Builder with hierarchy.

Some of my class is management class like UINavigationController, but they're not one of them, subclassed from NSObject.

Of course, I can place a NSObject instance on IB, but it cannot have a child node. Is there a way to enable adding child node to subclass of NSObject?

Was it helpful?

Solution

You can make a plug-in for Interface Builder. See here, or, more specifically, here.

Matt Gallagher also has a nice tutorial here.

Now, these links all pertain to Mac. I honestly am not sure if the same principles apply to iPhone.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top