在源码SVProgressHUD.m文件中第638行
self.frame = [[[UIApplication sharedApplication] delegate] window].bounds
这句改成
self.frame= [UIApplication sharedApplication].keyWindow.bounds这个应该就可以了
前提是SVProgressHUD是直接拖入项目。
在源码SVProgressHUD.m文件中第638行
self.frame = [[[UIApplication sharedApplication] delegate] window].bounds
这句改成
self.frame= [UIApplication sharedApplication].keyWindow.bounds这个应该就可以了
前提是SVProgressHUD是直接拖入项目。