Code Monkey home page Code Monkey logo

Comments (9)

fphilipe avatar fphilipe commented on May 25, 2024

To be honest, I've never even heard of UIScrollViewKeyboardDismissModeInteractive. I guess you could add a keyboard accessory view and use KVO on its frame to get notified of the new position. Hope this helps.

from phfcomposebarview.

wdeng avatar wdeng commented on May 25, 2024

DismissModeInteractive can be seen in the Attributes Inspector of scollView, basically is to panning down the keyboard.
cac6991f9ca891c099ec0590ade3678a
However, I tried to inspect the frame of InputAccessoryView. The frame is within keyboard's bound, so it never changes.

from phfcomposebarview.

wdeng avatar wdeng commented on May 25, 2024

Sorry, just found out you can use converPoint:toView: ...

from phfcomposebarview.

beamercola avatar beamercola commented on May 25, 2024

Interesting, could you provide an example? having a hard time wrapping my head around it

from phfcomposebarview.

luohui8891 avatar luohui8891 commented on May 25, 2024

Hi, same problem. Which notification of system can be observed the keyboards frame changing in the animation?

from phfcomposebarview.

fphilipe avatar fphilipe commented on May 25, 2024

@luohui8891 Use KVO on the accessory view's frame and then, as @inskyder said, use convertPoint:toView:.

from phfcomposebarview.

luohui8891 avatar luohui8891 commented on May 25, 2024

@fphilipe , got it. Thank you.

from phfcomposebarview.

rudensm avatar rudensm commented on May 25, 2024

I suggest to use https://github.com/danielamitay/DAKeyboardControl instead of UIScrollViewKeyboardDismissModeInteractive. It has much easier interface and additionally you can set there a keyboardTriggerOffset property.

from phfcomposebarview.

wdeng avatar wdeng commented on May 25, 2024

According to the visual animation of Facebook Messenger, I guess what they use is something like DAkeyboard or get the keyboard frame as accessory view's superview and modify it with input textView.

from phfcomposebarview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.