在iOS应用上的SVProgressHUD中禁用用户交互功能 [英] Disabling user interaction not working in SVProgressHUD on iOS app

查看:1289
本文介绍了在iOS应用上的SVProgressHUD中禁用用户交互功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了SVProgressHUD,并将其合并到我的项目中,如github文档页中所述,但是即使我写出[SVProgressHUD showWithMaskType:SVProgressHUDMaskTypeGradient];,它也与默认的遮罩类型没有区别,当我在触摸屏幕的同时点击光标旋转时,我的应用程序崩溃了-这意味着我无法禁用用户交互功能,因为我的应用程序崩溃了,然后才在那里显示所有表格视图单元.

I've just downloaded SVProgressHUD and incorporated it into my project as explained in the github documentation page, but even if I wrote out [SVProgressHUD showWithMaskType:SVProgressHUDMaskTypeGradient];, it's not different from the default mask type, and when I tapped the screen while the cursor was revolving I got my app crashed - meaning I wasn't able to disable the user interaction feature since my app crashes before showing all of the table view cells there.

请注意,clearblack掩码类型也不起作用.

And note that clear or black mask type didn't work, either.

那么如何才能成功禁用用户交互?我应该编写上面的代码,并且AppDelegate.mapplicationDidFinishWithLaunchingOptions:FirstViewController.viewDidLoad:是哪个文件?

So how can I successfully disable the user interaction? And which file of the AppDelegate.m's applicationDidFinishWithLaunchingOptions: and FirstViewController.'s viewDidLoad: should I write the above code?

我使用最新版本的SVProgressHUD,并使用Xcode 5.1和iOS 7.1.我也使用ARC.我想念什么吗?

I use the latest version of the SVProgressHUD and use Xcode 5.1 and iOS 7.1. I also use ARC. Am I missing something?

这是一个错误问题,当前版本已解决.在 Github页面中进行检查,以获取更多信息.

This was a bug issue and it has been resolved in the current version. Check it out on the Github page for the further info.

推荐答案

您不会丢失任何东西. iOS 7似乎并不尊重遮罩类型,因此永远不会禁用用户交互.我认为这是SVProgressHUD的错误,而不是其他任何错误.真的有点令人沮丧.

You're not missing anything. iOS 7 doesn't seem to respect the mask type, so user interaction is never disabled. I think it's a bug with SVProgressHUD rather than anything else. Bit frustrating really.

这篇关于在iOS应用上的SVProgressHUD中禁用用户交互功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆