PDA

View Full Version : How is this UI element called?




ralphbert
May 19, 2011, 08:08 AM
Hello guys,

I'm looking for the name of the semi-transparent splash info that shows up when switching the sound on/off on the iPhone.

Please take a look a this screenshot if you don't know what I mean: http://twitpic.com/4zn5yt

I want to use this to inform the user about certain things in my app.

Is this feature open for developers or do I need to use a third party library to use it?

Thanks,
Ralph



robbieduncan
May 19, 2011, 09:00 AM
You will have to create one yourself or find a third party library: it's not provided for use by Apple.

ralphbert
May 19, 2011, 10:07 AM
You will have to create one yourself or find a third party library: it's not provided for use by Apple.

Thanks for the info! :)

dantastic
May 19, 2011, 10:55 AM
it's just a uiview with some rounded corners & a bit of transparency.

If you want you can subclass & override hittest to allow touches to pass through.

PhoneyDeveloper
May 19, 2011, 05:22 PM
It's basically just an image with transparency displayed in a UIImageView. If you place the image view in another view and set the backgroundColor of the backgroundView to black and set its alpha to something like 0.6 and show that view it will look like this. There might be a few other details but that's pretty much it.

The white part of the image isn't transparent but the area surrounding it is transparent.