Search code examples
xcode4interface-builderxamarin.iosmonodevelop

Monodevelop 2.8 Xcode 4 Custom class on xib UI Components


How do you set a custom class on a UI component in Interface Builder, so say I have a class in my project that extends UITableView how do I associate a component in Interface Builder to use that custom class? I type the class name into the custom class placeholder but it replaces that with UITableView...

Any Ideas?

Thanks


Solution

  • Make sure you have this mode active (the right hand side pane), your view selected and the third pane selected like this:

    http://tirania.org/s/f6111a1a.png

    Then just set the name of the class there. When you save the file and switch back to MonoDevelop, it will automatically stub the class for you if you are using Storyboards.