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

Could not cast value of type 'YMAInterstitialOrientationLocker' exception #3

Closed
MrAlt opened this issue Aug 9, 2016 · 2 comments
Closed
Labels

Comments

@MrAlt
Copy link

MrAlt commented Aug 9, 2016

Sometimes I catch exception "Could not cast value of type 'YMAInterstitialOrientationLocker' (0x10136d580) to 'KrClient.AppDelegate' (0x1013597e0)." on this line of code:

let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate

@kanstantsin kanstantsin added the bug label Aug 9, 2016
@kanstantsin
Copy link

That's most likely a bug.
It will be fixed, but not sure if it's going to be fixed in the nearest future. The only thing I can suggest right now is to adapt the application code to handle cases when UIApplication.sharedApplication().delegate class is not AppDelegate

@kanstantsin
Copy link

Fixed in 2.8.0

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

No branches or pull requests

2 participants