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
iOS 13.0 Crash #1031
Comments
can't use [[[UIApplication sharedApplication] delegate] window].bounds] |
change to [UIScreen mainScreen].bounds or [UIApplication sharedApplication].keyWindow.bounds |
@Reinoal : change to [UIScreen mainScreen].bounds or [UIApplication sharedApplication].keyWindow.bounds This solution is not working for me. |
I also experienced a crash as soon as any SVProgressHUD call was done. Line 72: Line 657 Line 1231 |
Once I did this I still had a crash, just in a different place. I resolved it by adding back the missing selector to my AppDelegate. In other words:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions. |
I just ran into this again running iOS 14.5 on XCode 12.5 RC. Are there any solutions to this? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions. |
Create the project with the XCode latest version, the key window has change,just show code:
SVProgressHUD.m
(SVProgressHUD*)sharedView {
static dispatch_once_t once;
static SVProgressHUD *sharedView;
#if !defined(SV_APP_EXTENSIONS)
dispatch_once(&once, ^{ sharedView = [[self alloc] initWithFrame:[[[UIApplication sharedApplication] delegate] window].bounds]; });
#else
dispatch_once(&once, ^{ sharedView = [[self alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; });
#endif
return sharedView;
}
The text was updated successfully, but these errors were encountered: