Archived entries for UIProgressHUD

UIProgressHUD – A safe alternative

UIProgressHUD for iPhone

As posted previously, although it looks nice, putting a UIProgressHUD into your App will cause it to be rejected by Apple, however there is a much better alternative which I was introduced to recently.

This is the Activity Indicator from the WordPress iPhone Application, it's freely available (however there is a caveat to using it) and it works superbly well, simply download the code and nib that are linked in this post and insert them into your project.

LoadingView.h

LoadingView.m

WPActivityIndicator.xib

RoundedRectBlack.png

Then call it by using;

 [[LoadingView sharedActivityIndicator] show]; 

// your code here 

[[LoadingView sharedActivityIndicator] hide]; 

This provides a fine replacement for the UIProgressHUD I admire.

UIProgressHUD – The Undocumented Alert Type

UIProgressHUD in action

I really like this type of alert view to inform a user that some background processing is going on but it’s a real shame that it’s an undocumented and private class, meaning therefore you run the risk of your app being rejected by Apple if used.

What’s odd however is that I’ve seen many approved applications use this particular alert view so i guess it’s not 100% guaranteed of breaking Apple’s policy. I’m personally very keen on implementing this into my next iPhone application, it simply looks the part. Implementing UIProgressHUD Using the undocumented approach in your project is nicely explained here http://tmdvs.me/post/uikit-alert-types and i’ve tested it against the current iPhone OS version 3.1.2 and it still works well, however if we wish to avoid all possible risk of rejection by Apple, i found some code that someone has took time to develop that does a good job of replicating the undocumented alert, called MBProgressHUD

http://www.bukovinski.com/2009/04/08/mbprogresshud-for-iphone/

I’m personally going to try the undocumented method first and see if Apple accept it with my next application submission.



Copyright © 2004–2009. All rights reserved.

RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme by Rodrigo Galindez.