Creating clean rounded corners on a UITextField in a UITableViewCell

I create a UITextField in a UITableViewCell with rounded corners

UITextField *someTextField = [[UITextField alloc] initWithFrame:CGRectMake(165, 9, 135, 20)]; someTextField.backgroundColor = [UIColor whiteColor]; someTextField.borderStyle = UITextBorderStyleRoundedRect; 

Is there a way to make a corner region, a part between a rounded corner and a square corner so that the background color does not show. Any help is appreciated. Lq

[NOTE: I answered my question. Sorry, he was lame. LQ]

+4
source share
1 answer
 // Doh! This gets rid of the white corners: someTextField.backgroundColor = [UIColor clearColor]; 
+2
source

Source: https://habr.com/ru/post/1345552/


All Articles