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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With