AutoLayout restricts viewing to the right above the keyboard

Someone will be so kind to tell me how would you set a limit (using size classes) so that the presentation is right above the keyboard (without the predictive part) on the iP6 and iP6 +, as in the photo below?

Can I create a sample project?

thanks

ios

layout

+5
source share
2 answers

Either add restrictions programmatically based on the size of the keyboard, or create separate interface files for each screen size with a fixed limit based on the known size for the keyboard for that screen.

0
source

Below is a link to a chat application that works from the same premise. When the keyboard is active, the elements slide out, so they are not hidden.

https://github.com/oseparovic/MessageComposerView

The application is located in Objective-C and transfers this section of the application quite easily; I used it myself.

0
source

Source: https://habr.com/ru/post/1206840/


All Articles