ios - Facebook and keyboard animation management -
does know how implement composerbar , keyboard appearing in facebook messenger?
after scrolling tableview up, keyboard appears bottom smoothly , without jumps . in similar implementation works this: after scrolling up, when tableview bottom offset < 0, composerbar's input text field become first responder , keyboard jumps finger. yes, use uiscrollviewkeyboarddismissmodeinteractive
.
how facebook implement smooth animation?
edit: try explain how works in facebook messenger, step step.
i have inputaccessoryview on viewcontroller (tableviewcontroller). start scroll tv (pic 1)
then, if bottom inset become more value (for example 10) (pic 2), set firstresponder inputtextfield (pic 3)
so, in common case, 'uiscrollviewkeyboarddismissmodeinteractive', keyboard jumps finger position (pic 4)
but! in facebook messenger keyboard drags bottom distance equal distance traveled finger. (pic 5)
so, facebook messenger somehow control keyboard moving. question is: how??
what looking input accessory view
it property of uitextview/uitextfield allows set custom view displayed above system keyboard.
Comments
Post a Comment