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.
精彩评论