TPKeyboardAvoiding icon indicating copy to clipboard operation
TPKeyboardAvoiding copied to clipboard

Content Offset growing when pushing new view controller

Open reejosamuel opened this issue 11 years ago • 2 comments

When you push a new view controller and go back to the original with TPKeyboard Avoiding. The content offset is growing each time and finally the content goes out of scene.

update: This happens when the pushed window has a keyboard which is not dismissed when BACK is pressed.

reejosamuel avatar Jan 30 '14 14:01 reejosamuel

I can confirm this issue exists.

eaden90 avatar Feb 20 '14 11:02 eaden90

I'm having the same issue. I've done some fidding, and I can confirm that the view is still registered for the UIKeyboardWillShow and UIKeyboardWillHide notifications, so it's still trying to avoid the keyboard even when the keyboard is shown on a different view controller. When I force it to stop observing the notifications, this bug goes away, but I don't know of a good place to remove observers and add them again.

Right now I'm doing this manually in my view controller on 'viewWillAppear' and 'viewWillDissappear'. Does anyone have a better suggestion?

AnthonyMDev avatar Sep 02 '14 19:09 AnthonyMDev