【发布时间】:2011-05-02 08:56:01
【问题描述】:
如何在 Monotouch 下在 iPhone 上设置按钮背景图像? 如果您提供相同的样品会更好。 谢谢。
【问题讨论】:
标签: c# iphone ios uibutton xamarin.ios
如何在 Monotouch 下在 iPhone 上设置按钮背景图像? 如果您提供相同的样品会更好。 谢谢。
【问题讨论】:
标签: c# iphone ios uibutton xamarin.ios
这将在按钮上设置背景图像:
button.SetBackgroundImage (UIImage.FromBundle ("imageFile"), UIControlState.Normal);
您可以通过 UIControlState 参数为不同的控件状态设置不同的图像。
【讨论】: