TPKeyboardAvoiding icon indicating copy to clipboard operation
TPKeyboardAvoiding copied to clipboard

Add a new TPKeyboardAvoiding_setAdditionalContentOffset to UIScrollView.

Open pbernery opened this issue 9 years ago • 3 comments

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.

pbernery avatar May 25 '15 16:05 pbernery

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

cbowns avatar Mar 04 '16 00:03 cbowns

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

jeromeDms avatar Jun 23 '16 14:06 jeromeDms

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.

pbernery avatar Jun 24 '16 07:06 pbernery