Try changing the selector to setBackground: instead of background. The set means setter. Without it you are trying to use the getter. (And for booleans the getter will prepend is instead of nothing, nice and confusing )
from my dealing in SWIFT, the UITextView doesn’t support SetBackgroundImage
but it does support using an Image as the Background COLOR (however it is tiled across the control)
this would be the “Swift” version
//BACKGROUND IS TILED=True
temp.backgroundColor = UIColor(patternImage:UIImage(named:"image$0003.png")!)
other controls required using CALayer, or drawing into the graphic Context
but I think I have managed to find the SWIFT combinations for most of UIKit,… too bad they are not “consistent”
What does Xojo do if a declare such as you have above fails?
OK. I believe my code is correct, but yet, the picture never shows. I also tried disabledBackground to no avail as well. I though the dimensions of the picture explained the failure, but after setting up a picture the exact size of the iOSTextField, no error, but nothing shows up.
I finally created a custom control with a container control, with the picture underneath the iOSTextField.