Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replaced line 56 of CYRKeyboardButtonView.m #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dstantwo
Copy link

replaced line 56 of CYRKeyboardButtonView.m
changed from: if (UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)) {
to : if ([UIScreen mainScreen].bounds.size.width > [UIScreen
mainScreen].bounds.size.height) {

When used in an iOS keyboard extension, the original line causes an error on compiling:
'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead.

The new line still checks if the orientation is landscape, but sharedApplication is not used and compiles with no errors.

changed from: if (UIInterfaceOrientationIsLandscape([UIApplication
sharedApplication].statusBarOrientation)) {
to : if ([UIScreen mainScreen].bounds.size.width > [UIScreen
mainScreen].bounds.size.height) {
@oaksoeshein
Copy link

oaksoeshein commented Dec 24, 2018

iphone x issue

keyboard is crashed due to memory issue when we use CRKeyboardButton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants