问题标签 [svprogresshud]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1672 浏览

ios - SVProgressHud 等待时间过长才关闭

我想SVProgressHUD在登录过程中显示。但是SVProgressHUD登录后仍然等待。~15seconds在“登录成功”消息后将其关闭。这是我的代码:

autanticategetCSRFToken功能如下:

}

0 投票
1 回答
1112 浏览

objective-c - svprogresshud not showing in xcode5 ios7

I am trying to use SVProgressHUD with cocoapods. I have install it in my xcode workspace following numerous tutorials online. It seems simple enough to use, but I cannot get it to work. Here my code to load data from rottentomatoes app. I want to show "loading" while the network request is doing its thing. I am wondering if this is ui thread issue ? I added a sleep inside the network request because the results were coming back too fast !

EDIT for comment: The reload is called on both init methods (since I am using storyboard for this project)

Second EDIT: I added a pull down to refresh and the "updating ..." shows up when I pull the tableview down. But it does not show up on init.

So I guess I cannot run UI stuff on init methods as the view is not ready. I am now calling the reload method on viewdidload and it works file. Thank you John !

0 投票
1 回答
566 浏览

ios - 加载周围的SVProgressHUD背景缺少ios7

由于我升级到 iOS 7,加载框的背景不再显示。看截图:在此处输入图像描述

我使用 Cocoapods 添加了库,并且版本为 1.0

我的 .m 文件具有以下内容:

0 投票
3 回答
184 浏览

ios - AdColony + SVProgressHUD 冲突

在将 AdColony 的 2.2.4 库与使用 SVProgressHUD 的应用程序集成时,我遇到了一些奇怪的行为。如果在应用程序委托中进行标准配置调用...

SVProgressHUD 不再通过调用在应用中弹出

简单地注释掉 AdColony configureWithAppID 调用会导致 SVProgressHUD 再次正常运行。有没有其他人遇到过这种情况,或者找到一种方法让它们都在同一个应用程序中工作?

0 投票
2 回答
836 浏览

ios - SVProgressHUD 1.0 不调光且样式错误

我在我的 iOS 7 项目中使用 SVProgressHUD 1.0,如下所示:

我得到一个带有蓝色圆形箭头的白色 HUD(如下图中的第三个 - “加载”),并且没有背景变暗。我想要的是像这张图片中的第一个一样的HUD:

第一个HUD是我想要的,但我得到了第三个并且没有变暗。

并在启动时使背景变暗。如果我切换到 0.9 版本,我会得到调光,但 HUD 显然是半透明的黑色类型。

如何通过调光获得我正在寻找的 HUD?(是否可以在通话时更改样式?)

谢谢!

0 投票
2 回答
1308 浏览

ios - SVProgressHUD - 快速显示/隐藏控件会导致它在下次调用 showWithStatus 时不会出现

我在下面有一些源代码可以重现这一点。在 HUD 有机会出现之前调用showWithStatus和关闭会导致控件在下次showWithStatus调用时不显示。有谁知道任何解决方法?

编辑:我这里有一些源代码可以重现这一点。

0 投票
5 回答
7411 浏览

ios - 禁用用户交互在 iOS 应用上的 SVProgressHUD 中不起作用

我刚刚下载了 SVProgressHUD 并将其合并到我的项目中,如 github 文档页面中所述,但即使我写了[SVProgressHUD showWithMaskType:SVProgressHUDMaskTypeGradient];,它与默认掩码类型没有什么不同,当我在光标旋转时点击屏幕时,我得到了我的应用程序崩溃 - 这意味着我无法禁用用户交互功能,因为我的应用程序在显示所有表格视图单元格之前就崩溃了。

请注意clearorblack掩码类型也不起作用。

那么如何才能成功禁用用户交互呢?我应该写上面的代码的AppDelegate.m'sapplicationDidFinishWithLaunchingOptions:FirstViewController.'s的哪个文件?viewDidLoad:

我使用最新版本的SVProgressHUD并使用 Xcode 5.1 和 iOS 7.1。我也使用ARC。我错过了什么吗?

[更新]

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

0 投票
1 回答
778 浏览

ios - 更改 UIWindow 导致 SVProgressHUD 不出现

我在我的应用程序中使用了 2 个 UIWindows。在 AppDelegate 中,在方法 didFinishLaunchingWithOptions: 中我只有:

然后我将 self.windowSplit 设置为 splitViewController,并将 windowStartup 设置为 xib 作为其 rootViewController。如果我从 didFinishLaunchingWithOptions: 加载 windowSplit,则 SVProgressHUD 效果很好,但是如果我在 didFinishLaunchingWithOptions: 中加载 windowStartup,则调用:

稍后,SVProgressHUD 将无法工作。其他一切都按预期工作。我的愿望是让 SVProgressHUD 为第二种情况工作,但也要找出我做错了什么可能会影响其他任何事情。

有关更多信息,我采用这种方法的原因是我想使用标准的拆分视图控制器,但是我想先加载启动视图,而不是只出现在 iPad 上拆分视图的顶部。用户完成设置后,他们可以决定是否希望最初显示启动视图。

提前感谢您的帮助!


编辑:这是我的启动代码:

0 投票
2 回答
2793 浏览

ios - iOS:SVProgressHUD 未正确显示

我呼吁SVProgressHUD如下viewDidLoad

但这是我得到的:SVProgressHUD没有出现。我哪里错了? 在此处输入图像描述

0 投票
1 回答
590 浏览

ios - SVProgressHUD 如何在下一个 ViewController 中显示

TableViewController有一些项目,然后有一个 filterViewController,TableViewController根据值过滤数据。它是用UISwitch. 无论如何,我想问一下SVProgressHUD,当我从带有过滤数组的 filterViewController 返回时,如何将 a 添加到操作中。在 tableView 中过滤和显示它们需要几秒钟。我已经尝试过 dispatch_async,它甚至不显示 HUD。我在 filterViewController 中有一个 IBAction 按钮,用于确认值并将它们发送到TableViewController.

如果我将 HUD 添加到 filterViewController 中的操作,HUD 不会显示在 TableViewController 中。

过滤器视图控制器.m

表视图控制器.m