ビューの下部にテキストフィールドがあります。クリックして編集すると、キーボードがそれを覆い隠し、入力内容が表示されなくなります。このテキストフィールドが編集されているときはいつでもビューを再調整するメソッドを作りたいです。
インターフェイスビルダーを使用してテキストフィールドを宣言した場合、リンク(Ctrlキーを押しながらクリックしてドラッグ)するだけで済みます。しかし、私はコードでテキストフィールドを宣言しているので、それにメソッドを割り当てる方法を考えています。
私がやりたいことの擬似コード:
if (the text field is currently being edited){
call method: adjust view
}