开发者

How can I set a button background image on iPhone under Monotouch?

How can I set 开发者_开发百科a button background image on iPhone under Monotouch? It will be better if you provide me same sample. Thanks.


This will set a background image on a button:

button.SetBackgroundImage (UIImage.FromBundle ("imageFile"), UIControlState.Normal);

You can set different images for different control states with the UIControlState parameter.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜