ios - 在 ViewController 上显示 SVProgressHUD?

标签 ios objective-c iphone swift swift3

我在AppDelegate中使用了Web服务。但我想在初始 View Controller (View Controller)上显示 SVProgressHUD,当 Web 服务完成时,然后在 View Controller 中隐藏 SVProgressHUD。

最佳答案

SVProgressHUD 上有一个名为

的静态方法

+ (void)setContainerView:(UIView*)containerView;

[SVProgressHUD setContainerView:yourViewController.view];

关于ios - 在 ViewController 上显示 SVProgressHUD?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39741108/

相关文章:

javascript - 如何修复在 iPad 的打印预览中加载的空白页?我可以延迟打印预览加载吗?

iphone - 如何向 iPhone 应用程序添加动画?

iphone - 让 View 向上滑动以为键盘腾出空间?

iphone - 什么时候用encodeWithCoder : and initWithCoder: on the iPhone?

ios - XCode 5.1 强制对 Cocos2d-iphone v3 项目进行 32 位编译

ios - 使用 SWIFT 将 indexPath.row 传递给自定义单元格中的按钮

ios - Alamofire 安装失败 - Xcode 8.1

ios - 为每个 UISegementedControl 索引设置不同的文本颜色

objective-c - 更改@synchronized 部分中的锁定对象

ios - Objective-C 中如何从文件中读取数据?