iPhone开发 - 未记录的UIProgressHUD类 [英] iPhone Development - Non documented UIProgressHUD class

查看:141
本文介绍了iPhone开发 - 未记录的UIProgressHUD类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只听说过UIProgressHUD类做什么,但我找不到这个类或任何文档的实现。参考这个类可以在The iPhone Developer's Cookbook 1st Edition书和互联网上的其他文章中找到:

I've only heard about what UIProgressHUD class do, but i cannot find the implementation of this class or any documentation. Reference to this class can be found in "The iPhone Developer's Cookbook 1st Edition" book, and other articles on the internet:


http://www.cocoadev.com/index.pl?UIProgressHUD

http://blogs.oreilly.com/iphone/2008/02/using-a-progress-heads-up-disp.html

...或许是其他人。我只想知道如果我仍然可以使用这个类不知何故。有人有.h和.m类文件吗?或者有任何其他类,做什么UIProgressHUD假设要做的事情(打开一个警报,如窗口显示进度指示器与一条消息)。

... and maybe others. I just want to know if i can still use this class somehow. Does anyone has the .h and .m class files? Or is there any other class that does something what UIProgressHUD is suppose to do (open an alert like window showing progress indicator with a message).

谢谢。
Mustafa

Thanks. Mustafa

推荐答案

不要使用私人API。如果您幸运,苹果会批准您的应用,然后在操作系统更新中更改或删除API,激怒您的客户。如果你不幸运,Apple会拒绝你的应用。

Don't use private APIs. If you're lucky, Apple will approve your app, then change or remove the API in an OS update, angering your customers. If you're unlucky, Apple will reject your app.

在Mac上,你可以放弃它(至少暂时)。在iPhone上,不要使用私人API, EVER

On the Mac, you can get away with it (at least temporarily). On the iPhone, don't use private APIs, EVER.

编辑:因为这个答案最初是写的,到Mac。相同的规则适用于:如果您想在App Store中分发您的应用,请不要使用私人API EVER

And since this answer was originally written, Apple added an App Store to the Mac. Same rule applies there: If you want to distribute your app in the App Store, don't use private APIs, EVER.

这篇关于iPhone开发 - 未记录的UIProgressHUD类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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