View resizes to full screen after app becomes active
**My situation:**

I have a text input field at the bottom of my view (the outermost view does not scroll). When someone focuses the input, I shrink the view to accomodate the keyboard (specifically, I subtract the height of the keyboard and animate the view to a new height).

**My problem:**

Whenever something takes focus away from my ViewController and returns it soon after (e.g. a push notification or someone hitting the home button and coming back to the app later), the view seems to automatically resize so that the text input is back at the bottom of the screen, *but* the keyboard remains showing.

**What I want:**

I want the view to maintain the size it had before the app regained focus. The keyboard should remain showing and the text input show display above it, not move back down to the bottom of the screen behind the keyboard.

Does anyone know what I might be doing wrong or what I need to do to get this behavior?
View resizes to full screen after app becomes active
===

**My situation:**

I have a text input field at the bottom of my view (the outermost view does not scroll). When someone focuses the input, I shrink the view to accomodate the keyboard (specifically, I subtract the height of the keyboard and animate the view to a new height).

**My problem:**

Whenever something takes focus away from my ViewController and returns it soon after (e.g. a push notification or someone hitting the home button and coming back to the app later), the view seems to automatically resize so that the text input is back at the bottom of the screen, *but* the keyboard remains showing.

**What I want:**

I want the view to maintain the size it had before the app regained focus. The keyboard should remain showing and the text input show display above it, not move back down to the bottom of the screen behind the keyboard.

Does anyone know what I might be doing wrong or what I need to do to get this behavior?