方法はココにある方法をほぼそのまま使って、ボタンのハイライトなんかもそれらしく設定。 ボタンはクラス変数で持って、キーボードが隠れる時の処理に UIKeyboardWillHideNotification を使ってみた。 あと、アニメーションはブロックにして completion でボタンを Superview から剥がしてる。 とにかく肝なのはボタンをどのウィンドウのどの位置に貼るか?って事で、それは前出のページでしっかり調べられているので楽チンだった。 それぞれのコードはこんな感じ。 interface部 @interface ViewController : UIViewController { IBOutlet UITextField *textField; UIButton *doneButton; } @endNotification の登録 - (void)viewWillA
![UIKeyboardTypeNumberPadにDoneキーを付ける手順 - Debian GNU/Linux 3.1 on PowerMac G4](https://cdn-ak-scissors.b.st-hatena.com/image/square/833b089c0b45ccc8b54cbc0ce8b78f8c78d79455/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fp%2Fparaches%2F20111201%2F20111201024718.png)