tags:

views:

2633

answers:

4

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

+12  A: 

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.

Peter Hosey
Don't cross the streams! It would be bad.
Genericrich
+1  A: 

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.

iKenndac
+11  A: 

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://www.bukovinski.com/2009/04/08/mbprogresshud-for-iphone/

Matej Bukovinski
Great! I'm collecting such reusable components on http://stackoverflow.com/questions/843167/is-there-a-gallery-of-reusable-iphone-components-on-the-web — I'll repost you link there in a day if you don't do it yourself.
Andrey Tarantsov
Thanks. I've posted a link in your thread.
Matej Bukovinski
The source code is now on GitHub: http://github.com/matej/MBProgressHUD
Matej Bukovinski