Core animation depending on a popover - iPad
===

I need to do an animation where a UIView shifts to the left when a popover shows. It works ok but so far I have hardcoded the distance it shifts. Obviously the problem is that if the popover is visible and the device rotates, the popover ends up overlaping a bit with the view.

So I would rather need a way to know the popover's frame so that I woulsn't have to hardcode the distance.

Is there any way to achieve that?

Thanks in advance!