Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
イベントをトリガーできるように、テキストボックスがいつクリックされたかを知る方法はありますか?これは最善の方法ではないかもしれませんが、クリックしたときにテキストボックスを画面の別の部分にアニメーション化し、終了したら元の位置に戻したいと思います。
iOSに関連する質問の場合は、UITextFieldのデリゲートを設定し、次のdelegaqteメソッドでコードを追加します。
- (void)textFieldDidBeginEditing:(UITextField *)textField
デリゲートの設定