Scrolling png with text & alpha on top of a static UIImageView

Posted by heymon on Stack Overflow See other posts from Stack Overflow or by heymon
Published on 2010-04-29T21:48:17Z Indexed on 2010/04/29 21:57 UTC
Read the original article Hit count: 449

Filed under:
|
|

I have a view controller that has a view structure as follows:

FilesOwner
FirstResponder
View
   ImageView (.jpg)
   ScrollView
     ImageView (.png)

The text in the innermost imageview has white text and clear (alpha) all around. I want to scroll the innermost imageview, and see the background image (the .jpg) behind it.

Its not working. Its acting like the scrollview background obscures the underneath .jpg. I say this because if I change the background color of the scrollview, that's what I see i.e. if I set it black, I see black behind my .png, if I set it white, I see white. If I change the alpha of the scrollview that doesn't seem to work either. The one other thing I tried was unchecking drawing: Opaque, but that doesn't get it either.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiscrollview