I have XCode 4.2
In interface builder i´m choosing a background image for my TextField but it just doesn´t appear. I did the same for a custom button and worked great. Don´t know what i´missing.
Dumb question, but i can´t figured it out.
Possibly one of the following... If the textfield is disabled or if the borderStyle value is set to the UITextBorderStyleRoundedRect style, the custom background image associated with the text field is ignored.
The custom background image associated with the text field would be visible.
self.textfieldName.borderStyle =UITextBorderStyleNone;
textfield.borderStyle =UITextBorderStyleNone;
textfield.background=[UIImage imageNamed:@"txt2.jpg"];
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