tags:

views:

397

answers:

4

What class is referenced in the volume/mute button popup? Sorry for the awful question but I can't seem to find it anywhere.

+2  A: 

Sorry, this is not in the public API, and is not accessible by 'well-behaved' apps.

Ben Gottlieb
Weird, I have several apps installed that use something that looks exactly like it for a loading popup.
dc
That was probably home-made, this is not something that comes out of the box in the iPhone SDK. You'll have to throw something together to mimic that interface.
Yannick Compernol
A: 

Do you mean UIAlertView? It's a blueish view which has text and (optionally) buttons?

Daniel Tull
A: 

Are you thinking of MPVolumeSettingsAlertShow()? That is a method to show the system volume alert.

William Denniss
+1  A: 

You can simply create a UIView with a semi transparent black backgroundColor. Then set the view.layer.cornerRadius = 8.0; (this will create rounded corners) and add whatever you would like to display within it to that view as non-opaque subviews with clear backgrounds.

You can then add the newly created view to your top-most view and set the frame to center nicely and add some animation.

You need to add the following line in the header-file:

 #import <QuartzCore/QuartzCore.h>

and also need add QuartzCore to your linked frameworks.

Felix
You could also make it a UIWindow subclass, if you want to make sure it displays on top of everything.
chpwn