views:

7

answers:

0

I am trying to implement a zoom animation as in Safari. I have created a Window that contains a number of icons representing user documents. When the use clicks an icon, I would like to have it zoom then fill the screen with the target view.

The view structure is

Root View Navigation View Icon 1 ... Icon N Content Window

If use clicks on Icon 2, I would like Icon 2 to fill the screen, remove the Navigation View and its icons, display the Content View.

I have tried doing

beginAnimation Set the icon size to that of its parent bounds commitAnimation Display Content Viewby making it a subview of my Root View

That fails. I get an instant transition form the Navigation View to the Content View

If I do not display the content view, I get the proper zoom effect.

How can i get a transition from my zoomed icon to the destination view will preserving the animation?