How to hide UITextField border?

后端 未结 7 1769
星月不相逢
星月不相逢 2020-12-30 21:00

I have a UITextField and I am trying to make the UITextField border invisible so that the background and UITextField would have the same color and there would be a seamless

7条回答
  •  再見小時候
    2020-12-30 21:07

    Just use this..

    textOption.borderStyle = UITextBorderStyleNone;
    [textOption setBackgroundColor:[UIColor clearColor]];
    

提交回复
热议问题