Skip to content

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