2012-05-17 28 views

Respuesta

15

Puede que este código que funcione bien conmigo

UITextField* txtfield = [[UITextField alloc]initWithFrame:CGRectMake(10, 50, 300, 32)]; 
[txtfield setBorderStyle:UITextBorderStyleNone]; 
txtfield.layer.cornerRadius = 15.0; 
txtfield.layer.borderWidth = 2.0; 
txtfield.layer.borderColor = [UIColor redColor].CGColor; 
txtfield.layer.masksToBounds = YES; 
[self.view addSubview:txtfield]; 

Conjunto que fondo en su opinión y establecer borderColor a clearColor

Cuestiones relacionadas