UITextField with rounded corners only on top
I want to implement an UITextField which has rounded corners only at top left and top right corner. I know about the setter method setCornerRadius: which is a default option of UITextField, but this option only allows me to make all four corners of the txtfield round, but i only want the corners on the top to be round. I'm now messing around since hours, I have read through Appple's docs a dozen of times, but I'm still unable to find out why my code wont work: - (id) init { // init elements UITextField *txt_password = [[UITextField alloc] init]; UIView *txt_password_paddingVc = [[UIView alloc]