Information button disappears from view

I have an xib that contains an info button. I am doing animation on UIView by adding CALayer objects to the view layer and animating those layers. I try to place these layers behind the info button by moving them zPosition. The problem is, on a real iPod touch, the info button doesn't appear in the view, even though it responds perfectly to touch. Note that the same button renders perfectly in the simulator.

0


a source to share


1 answer


I fixed this by removing the info button layer from my super layer, then adding my own layers used for animation, and finally adding back the info layer. This really displays the information layer correctly.



0


a source