SVProgressHUD 设置显示时当前界面不可移动
2022-10-19 本文已影响0人
非叼牛
在viewWillAppear中设置
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeClear];
}
如需全局设置,请在AppDelegate.m中设置
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeClear];
return YES;
}