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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.