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];