开发者

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

开发者 https://www.devze.com 2023-03-02 18:40 出处:网络
How can I set 开发者_开发百科a button background image on iPhone under Monotouch? It will be better if you provide me same sample.

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

精彩评论

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

关注公众号