Comments (4)
I meant, I tried using CADisplayLink to continously get the position of the keyboard's layer, but it's not enough. I'll probably switch to the implementation using two input fields where one acts as inputAccessoryView of the other and then switch between them.
from slacktextviewcontroller.
The current keyboard panning implementation is inspired from CVKeyboardDismiss.
It was working perfectly on iOS7, but then it was broken on iOS8. So I made some fixes and might have broken it on iOS7. Will have a look.
Are you compiling with iOS7 SDK?
from slacktextviewcontroller.
So the fix was pretty easy:
For some reason, the acessoryView's superview's frame isn't available anymore in iOS8, so that's why we're using its center property instead. And with iOS7, we're still relying in its frame, and works well.
In iOS7, the vertical scrollview indicator does oddly resize which doesn't look very good. I have tried to fix it before without success...
from slacktextviewcontroller.
Sorry, my mistake. I have an implementation of my own which is based on the same ideas as yours. When I tried your messenger example on ios7 it didn't work properly so I assumed the problem is the same.
My issue was that I was completely relying on frame change notifications - which works fine on iOS8, but not on iOS7 (where you only get them while the user is dragging the keyboard). The easiest solution is what you're already doing which is using the combination of keyboard will show / hide and observing frame changes.
Anyway, thanks for the fix!
from slacktextviewcontroller.
Related Issues (20)
- Inputbar incorrect position after keyboard appear on iPad presented as formsheet
- Unrecognized Platform name iOS HOT 1
- left and right chat cell. HOT 1
- Improving autocomplete for better mention support HOT 1
- error
- Autocomplete issue when TextView has NSTextAttachment HOT 1
- Use __typeof instead of typeof
- Help needed, how i can use STVC with a CustomCell?
- Move keyboard down with drag HOT 1
- textInputbar incorrect position when embeded in a container view HOT 10
- Enable App Extension Safe use of API's
- keyboardDismissMode HOT 1
- Left button doesn't appear
- UITableViewCell incorrect position when scroll table embeded in a container view HOT 1
- red_car emoji is gray
- Incorrect TextInputBar Layout HOT 1
- iOS 12 bottom bar is not hiding HOT 3
- Input TextView of SlackTextViewController is going behind Keyboard
- when keyboard pops and everything of Screen goes up including navigation bar HOT 1
- We are using SLKTextViewController and when we swipe or pan to go back, the text input doesnt follow the keyboard.
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 slacktextviewcontroller.