Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new TPKeyboardAvoiding_setAdditionalContentOffset to UIScrollView. #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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