Reputation: 140
I Want to round the UITextField Corners, to display it something like this
i want to do this programatically, not by using images.
Upvotes: 4
Views: 1132
Reputation: 348
You can set the Corner-Radius on any UIView-Subclass.
#import <QuartzCore/QuartzCore.h>
in your UIViewController
Subclass (where you have access to the UITextfield
instance of your choice[yourTextField.layer setCornerRadius:14.0f];
I think this will help you.
Upvotes: 5