Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rounded corner to UITextField Xcode

I have two textfield (username & password) and want to make top rounded corner for username and bottom rounded corner for password as per attachment.

enter image description here

like image 348
PPShein Avatar asked Jun 09 '15 07:06

PPShein


1 Answers

Just create a UIView.

Put your two text fields in the UIView. Remove the border style of UITextField.

yourView.layer.cornerRadius = 10.0
yourView.clipsToBounds = true
like image 166
Ashish Kakkad Avatar answered Sep 18 '22 00:09

Ashish Kakkad