How to give Nil value for UIColor in xamarin.iOS?

How to give nil value for UIColor in Xamarin.iOS ?

iOS :

UIColor * backgroundColor = nil;

 

Same as Xamarin.iOS the following code

 

 internal class CustomColor : UIColor
    {
        internal CustomColor(IntPtr value) :base(value)

        {

        }
    }	

Example: 

	UIView view = new UIView ();

    CustomColor color = new CustomColor(IntPtr.Zero);

    view.BackgroundColor = color;


You use same approach to all type iOS native object.

 internal class CustomUIView : UIView
    {
        internal CustomUIView(IntPtr value) :base(value)

        {

        }
    }	

Example: 

	UIView view = new CustomUIView(IntPtr.Zero);