2010年5月1日土曜日

UIResponder(イベントの管理応答)

UIVeiwクラスやその派生クラスは、UIResponderを継承しており、以下の機能も保有しています。

レスポンダーチェーンを管理する
resignFirstResponderでは、当該オブジェクトをFirstResponder(ユーザ使用中)から解除することで、キーボードを非表示にできます。
  • – nextResponder
  • – isFirstResponder
  • – canBecomeFirstResponder
  • – becomeFirstResponder
  • – canResignFirstResponder
  • – resignFirstResponder
入力ビューを管理する
  •   inputView  property
  •   inputAccessoryView  property
  • – reloadInputViews
タッチイベントに応答する
  • – touchesBegan:withEvent:
  • – touchesMoved:withEvent:
  • – touchesEnded:withEvent:
  • – touchesCancelled:withEvent:
モーションイベントに応答する
  • – motionBegan:withEvent:
  • – motionEnded:withEvent:
  • – motionCancelled:withEvent:
アンドゥを取得する
  •   undoManager  property
コマンドを有効にする
  • – canPerformAction:withSender:

0 件のコメント:

コメントを投稿