GithubHelp home page GithubHelp logo

Comments (4)

ivgalic avatar ivgalic commented on July 17, 2024

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.

dzenbot avatar dzenbot commented on July 17, 2024

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.

dzenbot avatar dzenbot commented on July 17, 2024

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.

ivgalic avatar ivgalic commented on July 17, 2024

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)

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.