How is this UI element called?

Discussion in 'iOS Programming' started by ralphbert, May 19, 2011.

  1. macrumors newbie

    Joined:
    May 19, 2011
    Location:
    Austria
    #1
    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
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    You will have to create one yourself or find a third party library: it's not provided for use by Apple.
     
  3. thread starter macrumors newbie

    Joined:
    May 19, 2011
    Location:
    Austria
    #3
    Thanks for the info! :)
     
  4. macrumors 6502

    dantastic

    Joined:
    Jan 21, 2011
    #4
    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.
     
  5. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #5
    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.
     

Share This Page