Quote:
Originally Posted by pure
yes i have, the problem is when i set viewb transparent it transparent and you see viewa not root view and i want to see root view
|
You will have to do a couple of things:
Set the opaque property of both view a and view b to FALSE.
Use images with an alpha channel for both view a and view b
Set the portion of view A and view b that you want to transparent. If both view A and view B are the same size and exactly on top of each other, this will be pretty easy. If they are different sizes, or have different origins, you'll have to come up with the math that will let you figure out the coordinates of the areas of both views to make transparent. UIView has a set of methods that let you convert between the coordinate systems of different views. They all start with "convert", and those will let you take a rectangle in the coordinates of the root view and convert it to the coordinates of view A and view b so you can figure out the area of view a and b that you want to make transparent.