public
Description: An example of how to show a HUD over the UIImagePickerController on the iPhone.
Homepage: http://jakebehrens.com
Clone URL: git://github.com/withfoam/SnaflHUD.git
name age message
directory Classes/ Thu Jul 02 14:04:55 -0700 2009 First commit. [Jake Behrens]
directory Images/ Thu Jul 02 14:04:55 -0700 2009 First commit. [Jake Behrens]
file README.markdown Thu Jul 02 15:50:12 -0700 2009 Updated README [Jake Behrens]
file SnaflHUD-Info.plist Thu Jul 02 14:04:55 -0700 2009 First commit. [Jake Behrens]
directory SnaflHUD.xcodeproj/ Thu Jul 02 14:04:55 -0700 2009 First commit. [Jake Behrens]
file SnaflHUD_Prefix.pch Thu Jul 02 14:04:55 -0700 2009 First commit. [Jake Behrens]
file main.m Thu Jul 02 14:04:55 -0700 2009 First commit. [Jake Behrens]
README.markdown

SnaflHUD

What Does It Do?

This example shows you how to place a loading/progress indicator HUD over a UIImagePickerController on the iPhone before dismissing the UIImagePickerController (for when you save, upload, etc.)

It's a bit of a hack and a bit of undocumented code, but it gets the job done and I haven't seen anyone else put the code out there, so here you go.

I haven't submitted an app with it yet either, so if you get rejected for it, please let me know so that I can adjust it. I'll also update this when I have submitted an app with it included.

As always, if you have a better way of doing it, feel free to fork it and email me at withfoam@gmail.com and let me know what works better for you!

Why Do It?

The problem is that when you take or select a photo with the UIImagePickerController, once you preview the photo and say you want to use it, the UIImagePickerController just hangs until it's finished with what it's doing. No indicator that it's still doing something. This is a huge UI no-no.

This is my attempt to let the user know that things are happening and that the app hasn't frozen. This will also allow you to upload, compress, etc. and let them know each step of the way.