iPhone UITextField background color

前端 未结 7 1083
死守一世寂寞
死守一世寂寞 2020-12-05 05:17

I am unable to control the background color of a UITextField with a borderStyle= UITextBorderStyleRoundedRect. With this border style the ba

7条回答
  •  天命终不由人
    2020-12-05 05:39

    You can do this:

    textField.backgroundColor = [UIColor whiteColor];
    

    In this case I'm doing it with white color but you can do it with another color for uiColor.

    Hopes it helps

提交回复
热议问题