これを試してください。最初に、あなたのテキストフィールドをviewdidloadに隠しておきます。そして、ボタンを押す、フェードインして、編集可能にして、ユーザーのためにキーボードをポップアップします。
//viewDidLoad
yourTextField.alpha = 0;
yourTextField.userInteractionEnabled = FALSE;
-(void)editNote {
//fade in text field after button push
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDelay:0];
[UIView setAnimationDuration:0.75];
yourTextField.alpha = 1;
[UIView commitAnimations];
//make text field editable
yourTextField.userInteractionEnabled = TRUE;
//pop up keyboard
[yourTextField becomeFirstResponder];
}
-------更新--------
今、あなたはあなたが少し良くしようとしているものを説明していること。この新しいView Controllerのフィールド(UITextFieldsなど)を使用して全く新しいViewControllerを作成したいと思うでしょう。オンボタン
あなたがコーディングしますクリックしてください:
TextFieldViewController * vc = [(TextFieldViewController *)[[TextFieldViewController alloc] init] autorelease];
[self.navigationController presentModalViewController:vc animated:YES];
[vc release];
//you will need to create a button on this new ViewController and use this code to dismiss it when done.
[[self parentViewController] dismissModalViewControllerAnimated:YES];
は、ユーザーが_notes_button_を押した後のUITextFieldが編集可能になったことをしたいですか?その時点で表示されるはずですか?ユーザーがnotes_buttonを押すと –
が表示され、uitextフィールドが表示され、編集可能でなければなりません。 – lifemoveson