こんにちは。久しぶりのObjective-Cの投稿です。今日は、最近Objective-Cを始めた方とお話をする機会があり、UITextViewをキーボードのサイズに合わせてリサイズするサンプルコードを書きました。 Objective-Cを初めて少しするとこの辺りでハマることは割と一般的だと思います。 環境 UIStoryboardとAutoLayoutを利用しています。 Xcodeは5.1.1を利用しています。 コード GitHubにアップしました。 morizotter/TextViewAutoresizeSample やっていることは、 UIKeyboardWillShowNotification UIKeyboardWillChangeFrameNotification UIKeyboardWillHideNotification の3つの通知を受けて、そこからキーボードのサイズを