APP开发新手,遇到问题。当我创建我的文本然后用户点击键盘出现的文本时,如何禁用键盘出现?
你能帮助我吗?
这是我的 UITextField 文本代码:
UITextField *textField1 = [[UITextField alloc] initWithFrame:CGRectMake(108, 31, 105, 22)];
[contentView addSubview:textField1];
textField1.alpha = 1.0;
textField1.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleBottomMargin;
textField1.text = @"my talent";
textField1.borderStyle = UITextBorderStyleNone;
textField1.textAlignment = UITextAlignmentCenter;
textField1.contentVerticalAlignment = UIControlContentVerticalAlignmentTop;
textField1.textColor = [UIColor colorWithRed:0.6 green:0.6 blue:0.6 alpha:1.0];
textField1.font = [UIFont fontWithName:@"Helvetica" size:17.0];
[textField1 release];