Skip to content

Conversation

pbernery
Copy link

I needed to apply an offset to the applied content offset of TPKeyboardAvoiding and thus created this patch.
The additional offset is added to the originally computed offset of TPKeyboardAvoiding. The additional offset is to be set on each UIScrollView on which it is desired.

The additional offset will be added to the originally computed offset of TPKeyboardAvoiding.
@cbowns
Copy link
Collaborator

cbowns commented Mar 4, 2016

Can you share an example of how you're using this?

@jeromeDms
Copy link

Hi
Does this modification also works with tableview (not scrollview) ?
Thanks

@pbernery
Copy link
Author

Hi @cbowns. The thing is I don't use it anymore because I refactored the part of my app that was using it.
However I can tell you why I needed this: I wanted the textfield (or the text view) to be placed on the screen at a specific position after the keyboard opens. Applying an offset makes this possible.

@jeromeDms: the change is made in UIScrollView, of which UITableView inherits so it should work, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants