0

不要重复问题!我检查了许多答案并尝试了许多解决方案,但没有任何反应。

我在 上新创建了项目Xcode 11,并添加SVProgressHUD了它并显示HUD它工作正常,但背景组件user interaction并没有禁用它。目前我已经实现了以下代码:

[SVProgressHUD setDefaultStyle:SVProgressHUDStyleLight];
[SVProgressHUD setDefaultAnimationType:SVProgressHUDAnimationTypeFlat];
[SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeBlack];
[SVProgressHUD showWithStatus:@"Message"] ;

我使用最新版本的SVProgressHUDand 使用Xcode 11and iOS 13MaskType不工作,我怎样才能禁用user interaction

编辑:

  • 它在 Xcode 10 或更低版本的项目上运行良好。
4

1 回答 1

0

我已经解决了这个问题,这个问题是由于SceneDelegate文件而发生的。

我已将旧行为设置回应用程序:

  1. 从 Info.plist 中删除“ Application Scene Manifest ”条目
  2. 从中删除“ UISceneSession 生命周期”方法AppDelegate.m
  3. 从项目中删除“ SceneDelegate.h 和 SceneDelegate.m ”文件。
  4. 将 window 属性添加回AppDelegate(例如@property (strong, nonatomic) UIWindow *window;

之后我尝试使用下面的代码运行,它在应用程序上运行良好。

[SVProgressHUD setDefaultStyle:SVProgressHUDStyleLight];
[SVProgressHUD setDefaultAnimationType:SVProgressHUDAnimationTypeFlat];
[SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeBlack];
[SVProgressHUD showWithStatus:@"Message"] ;
于 2019-11-25T05:15:10.543 回答