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 scro开发者_开发百科llview that doesn't seem to work either. The one other thing I tried was unchecking drawing: Opaque, but that doesn't get it either.
Try setting the alpha value of your scrollviews background color to 0 (not the alpha value of the scrollview itself). The scrollview should be set to not opaque.
(didn't try, just guessing...)
精彩评论