I'm trying to change the background color of a UITextField of a UIAlertController.
First, I added the UITextField using this code:
[alertController addTextFieldWithConfigurationHandler:^(UITextField *tfPrompt) {
self.textField = tfPrompt;
}];
After, in another moment, I tried to change it's background color using this code:
[self.textField setBackgroundColor:[UIColor redColor]];
But this is what I got:
What I really want is to fill the whole background of this UITextField. Is this possible? Thanks for any advice!