Comments (9)
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.
DismissModeInteractive can be seen in the Attributes Inspector of scollView, basically is to panning down the keyboard.
However, I tried to inspect the frame of InputAccessoryView. The frame is within keyboard's bound, so it never changes.
from phfcomposebarview.
Sorry, just found out you can use converPoint:toView: ...
from phfcomposebarview.
Interesting, could you provide an example? having a hard time wrapping my head around it
from phfcomposebarview.
Hi, same problem. Which notification of system can be observed the keyboards frame changing in the animation?
from phfcomposebarview.
@luohui8891 Use KVO on the accessory view's frame
and then, as @inskyder said, use convertPoint:toView:
.
from phfcomposebarview.
@fphilipe , got it. Thank you.
from phfcomposebarview.
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.
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)
- keyboard hide textfield HOT 3
- Mutliline text is cut HOT 3
- Unable to scroll to caret after inserting NSTextAttachment in textView HOT 1
- Keyboard covers text field HOT 1
- Resign First Responder not working with Swift HOT 4
- Implement via Swift? HOT 1
- setMaxCharCount not function well HOT 1
- White view over the UITextView not showing the entered text HOT 5
- Attachment cancel button on image of NSTextAttachment
- Attachment cancel button on image of NSTextAttachment HOT 1
- Globally selected text & Image paste HOT 5
- Regarding Default size increase when load composebar HOT 6
- Textview not accessible to UI tests HOT 8
- UIBarStyleBlackTranslucent? HOT 2
- ComposeBar frame update issue using Autolayout update ? HOT 1
- Compose bar doesn't respond to paste board HOT 1
- Not working properly on iOS 11, Xcode 9 HOT 7
- How To Use PHFComposeBarView control in Table View Cell.. HOT 1
- Conflict with IQKeyboardManager HOT 1
- Not working properly on iPhone X/XS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phfcomposebarview.