有没有可以在 iPhone 上使用的简单开源 HUD(类似于 MBProgressHUD)?
我不想使用 MBProgressHUD,因为线程和管理后台请求的开销。我不需要后台任务处理程序。只需一个简单的、线程安全的处理视图/窗口的库就可以完成这项工作。另外,如果不从不同的视图控制器创建实例并添加/删除它,我认为这对消费者来说工作量太大了。我应该能够从代码中的任何地方调用它。 像这样的事情:
<代码> [SimpleHud getInstance] pop];
[SimpleHud getInstance] pop withTitle:@"Doing stuff"];
[SimpleHud getInstanca]隐藏];
I don't want to use MBProgressHUD because of the overhead for threads and managing background asks. I don't need a background task handler. Just a simple, thread safe library that deals with views/windows should do the job. Also without creating an instance from different view controllers and adding/removing it, I think its too much work for the consumer. I should be able to call it from anywhere in the code.
Something like this:
[SimpleHud getInstance] pop];
[SimpleHud getInstance] pop withTitle:@"Doing stuff"];
[SimpleHud getInstanca] hide];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我喜欢 David Sinclair 的 DSActivityView。它比 MBProgressHUD 更轻,但不是轻量级。值得一看。
I like David Sinclair's DSActivityView. It's lighter than MBProgressHUD, though not featherweight. Worth taking a look.
这就是我的想法:
类是一个简单的 UIViewController。
This is what I come up with:
Class is a simple UIViewController.