[MonoTouch] How to add custom .cs class to a new View Controller

Jeff Stedfast jeff at xamarin.com
Tue Dec 20 18:16:38 EST 2011


Hi Mike,

When you click on what editor? The Xcode editor? I'm don't understand what
your workflow is.

If you create a new class in Xcode, MonoDevelop will import it (at least,
it should unless there's a bug somewhere).

If you are creating new classes in MonoDevelop, make sure to add a
[Register] attribute to the class so that MonoDevelop knows to export it to
Xcode.

Hope that helps,

Jeff

On Mon, Dec 19, 2011 at 11:49 AM, QMIMike <mcasey at qmiusa.com> wrote:

> I just added a View Controller to the storyboard within Xcode.  When I
> click
> on the editor, I see the default IOS .h and code instead of the
> Monodevelop'd .h code.  How do I add a ViewController to a storyboard and
> have MonoDevelop automatically generate the needed .h file so I can start
> dragging over controls?  Thanks for any assistance.
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/How-to-add-custom-cs-class-to-a-new-View-Controller-tp4214788p4214788.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111220/4580bffd/attachment.html 


More information about the MonoTouch mailing list