我以编程方式创建了单击时无法编辑的文本字段。我究竟做错了什么?
CGRect frame3 = CGRectMake(100, 730, 100, 30);
UITextField *textfield3 = [[UITextField alloc] initWithFrame:frame3];
textfield3.borderStyle = UITextBorderStyleRoundedRect;
textfield3.textColor = [UIColor blackColor];
[self.view endEditing:YES];
[self.view addSubview:textfield3];