Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone Development - Non documented UIProgressHUD class

Tags:

cocoa-touch

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

... 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).

Thanks. Mustafa

like image 320
Mustafa Avatar asked Jan 06 '09 10:01

Mustafa


4 Answers

I've created my own "progress HUD", the MBProgressHUD. I've recently published the code on my blog. If you want, you can check it out and see if it meets your needs.

You can find the code at: http://github.com/matej/MBProgressHUD

like image 143
Matej Bukovinski Avatar answered Oct 19 '22 16:10

Matej Bukovinski


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.

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

Edit: 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.

like image 20
Peter Hosey Avatar answered Oct 19 '22 17:10

Peter Hosey


I think UIProgressView is what you're supposed to use now.

http://www.iphonedevcentral.org/tutorials.php?page=ViewTutorial&id=43&uid=34167348

How to integrate NSURLConnection with UIProgressView?

like image 26
Richard Campbell Avatar answered Oct 19 '22 16:10

Richard Campbell


At the moment, the only alternative is to roll your own, or find someone else who has done the same and is willing to share their code with you.

like image 44
iKenndac Avatar answered Oct 19 '22 16:10

iKenndac