Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ol> <li><p>Making the effect is simple. You take the full-sized view, initialize its <code>transform</code> and <code>center</code> to position it on top of the thumbnail, add it to the appropriate superview, and then in an animation block reset the <code>transform</code> and <code>center</code> to position it in the final position. To dismiss the view, just do the opposite: in an animation block set <code>transform</code> and <code>center</code> to position it on top of the thumbnail, and then remove it completely in the completion block.</p> <p>Note that trying to zoom from a point (i.e. a rectangle with 0 width and 0 height) will screw things up. If you're wanting to do that, zoom from a rectangle with width/height something like 0.00001 instead.</p></li> <li><p>One way would be to do the same as in #1, and then call <code>presentModalViewController:animated:</code> with animated NO to present the actual view controller when the animation is complete (which, if done right, would result in no visible difference due to the <code>presentModalViewController:animated:</code> call). And <code>dismissModalViewControllerAnimated:</code> with NO followed by the same as in #1 to dismiss.</p> <p>Or you could manipulate the modal view controller's view directly as in #1, and accept that <code>parentViewController</code>, <code>interfaceOrientation</code>, and some other stuff just won't work right in the modal view controller since Apple doesn't support us creating our own container view controllers.</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload