C# 如何在Ipad上使用Monotouch创建圆形按钮?

C# 如何在Ipad上使用Monotouch创建圆形按钮?,c#,ios,xamarin.ios,C#,Ios,Xamarin.ios,如何使用Monotouch for iOS创建圆形按钮?创建自定义按钮: UIButton myButton = UIButton.FromType(UIButtonType.Custom); 指定具有所需形状的背景图像: myButton.SetBackgroundImage(UIImage.FromFile("circle.png"), UIControlState.Normal); 请参见使用标准UIButton绘制一个

如何使用Monotouch for iOS创建圆形按钮?

创建自定义按钮:

UIButton myButton = UIButton.FromType(UIButtonType.Custom);
指定具有所需形状的背景图像:

myButton.SetBackgroundImage(UIImage.FromFile("circle.png"), UIControlState.Normal);
请参见使用标准UIButton绘制一个