1

I'm trying to share as much code between my common UIViews as possible by subclassing UIView.

Is there a way to make this UIView accessable in Interface Builder?

What's the best way to reuse hand-coded UIViews in Cocoa?

CVertex
  • 17,997
  • 28
  • 94
  • 124

2 Answers2

3

Add a normal UIView to your window/view in interface builder and in the Identity Inspector, change the name of the class to your UIView subclass.

savardc
  • 31
  • 2
3

If you want to make your custom views available in interface builder permanently, you could create a plugin for interface builder.

See here: How do you display custom UIViews in InterfaceBuilder?

Community
  • 1
  • 1
henning77
  • 3,824
  • 2
  • 26
  • 32