dc.
dc.

Reputation: 1429

iPhone - Volume/Mute Buttons

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

Upvotes: 0

Views: 1198

Answers (4)

Felix Lamouroux
Felix Lamouroux

Reputation: 7484

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.

Upvotes: 1

William Denniss
William Denniss

Reputation: 16336

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

Upvotes: 0

Daniel Tull
Daniel Tull

Reputation: 1736

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

Upvotes: 0

Ben Gottlieb
Ben Gottlieb

Reputation: 85532

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

Upvotes: 2

Related Questions