Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Transparent UIImage

obaidahmedobaidahmed Posts: 18New Users
edited August 2012 in iOS SDK Development
I am creating an iOS application in which I have added a simple UIImage. I want to add the transparency effect in image to show other images behind that main image. Tell me how I can achieve this effect?
Tagged:

Replies

  • kc26518kc26518 Posts: 5New Users
    edited August 2012
    If you want to make the image partly see through then you would change the alpha of the image in attributes inspector on the right hand side of your Xcode program to something in between 1 and 0. An alpha of 1 is not see through at all, and an alpha of 0 means you can't see the image at all.
  • Duncan CDuncan C Posts: 9,114Tutorial Authors, Registered Users @ @ @ @ @ @ @
    In addition to using an image where the alpha channel is 0 for the pixels that you want to be transparent, and between 0 and 1 for pixels that are partly transparent, you need to put the image into an image view that has the opaque flag set to NO.
    Regards,
    Duncan C
    WareTo

    widehead.gif
    Animated GIF created with Face Dancer, available for free in the app store.

    I'm available for one-on-one help at CodeMentor
Sign In or Register to comment.