不要重复这个问题!我已经核对了许多答案,尝试了许多解决方案,但没有什么是有效的。
我在Xcode 11上创建了新的项目,并在上面添加了SVProgressHUD并显示HUD运行良好,但是后台组件user interaction并没有禁用它。目前,我已经实现了以下代码:
[SVProgressHUD setDefaultStyle:SVProgressHUDStyleLight];
[SVProgressHUD setDefaultAnimationType:SVProgressHUDAnimationTypeFlat];
[SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeBlack];
[SVProgressHUD showWithStatus:@"Message"] ;我使用SVProgressHUD的最新版本,并使用Xcode 11和iOS 13。MaskType不工作,我如何禁用user interaction
编辑:
发布于 2019-11-25 05:15:10
我已经解决了这个问题,这个问题发生是由于SceneDelegate文件。
我已经将旧的行为设置回了应用程序:
删除Info.plist
AppDelegate.m
H 115将窗口属性添加回AppDelegate (ex )。@property (strong, nonatomic) UIWindow *window;)
在此之后,我尝试使用下面的代码运行,它在应用程序上运行得很好。
[SVProgressHUD setDefaultStyle:SVProgressHUDStyleLight];
[SVProgressHUD setDefaultAnimationType:SVProgressHUDAnimationTypeFlat];
[SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeBlack];
[SVProgressHUD showWithStatus:@"Message"] ;https://stackoverflow.com/questions/58992801
复制相似问题