TPKeyboardAvoiding
TPKeyboardAvoiding copied to clipboard
Add a new TPKeyboardAvoiding_setAdditionalContentOffset to UIScrollView.
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.
Can you share an example of how you're using this?
Hi Does this modification also works with tableview (not scrollview) ? Thanks
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.