[MonoTouch] custom uibutton

Jeff Stedfast jeff at xamarin.com
Tue Oct 18 14:51:27 EDT 2011


Hi Vincenzo,

Yes, this is possible. After you implement (or, at least define) your custom
UIButton subclass, if you then double-click a xib or storyboard, MonoDevelop
will sync all your registered[1] classes to an Xcode project and open it in
Xcode. You won't be able to choose your custom UIButton from the controls
panel, but what you can do is select a UIButton, drag it to your window, and
then in properties view for that button, you'll be able to select your
UIButton subclass as the class type for that UIButton.

There may be a better way, but that's the only way I know of.

Hope that helps!

Jeff

1. make sure to add the [Register] attribute on your custom class

On Thu, Oct 13, 2011 at 7:50 AM, aulius <v.chianese at consulting-swiss.com>wrote:

> It's possible to make a custom uibutton (es. public partial class
> mybuttom:UIbutton) and use it into interface builder?
>
> Thanks
>
> Vincenzo
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/custom-uibutton-tp3901250p3901250.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/20111018/03e5e74a/attachment-0001.html 


More information about the MonoTouch mailing list