好设置背景颜色,我这样做:真正在MonoTouch的
UIButton btReturn;
btReturn = UIButton.FromType (UIButtonType.RoundedRect);
btReturn.Frame = btnBounds;
btReturn.SetTitle (Caption, UIControlState.Normal);
btReturn.Layer.CornerRadius = 14;
btReturn.ClipsToBounds = true;
btReturn.TouchUpInside += touchHandler;
btReturn.BackgroundColor = UIColor.FromRGB (0xe4, 0x96, 0x37);
return btReturn;
这引出了一个问题...为什么它到底在拿出的白色背景???我本来试图设置清除背景图像,但这也不起作用...
什么可能是错的?
令人惊叹......真的让人惊叹......所以,如果我创建一个图像使用圆形,我应该使背景透明,然后设置为自定义? – 2013-03-20 16:21:27
看似可以工作。 – 2013-03-20 19:37:19