mardi 5 mai 2015

How to instantiate custom buttom from UIButton?

I need to make my button to CustomButton.

public class MyCustomButton : UIButton
{
    string customProperty;
}

I have already a UIButton. Now I need to make it MyCustomButton.
But explicit type cast results in crash.
How can I instantiate MyCustomButton from already existed UIButton?

Aucun commentaire:

Enregistrer un commentaire