How to set frame for CATransition in iOS <p>Iam new to ios development.I have one doubt related to CATransition.I placed one imageview with one image from top to middle of the screen(0,0,320,250).Iam using animation to animate the image from bottom to top in viewdidload method.But the image is animating from bottom of self.view, But i need to animate the image from height 250 not from 568.</p> <p>The code what iam using is below: </p> <pre><code>CATransition *transition = [CATransition animation]; transition.duration = 1.0f; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; transition.type = kCATransitionPush; transition.subtype = kCATransitionFromTop; [topImage.layer addAnimation:transition forKey:nil]; </code></pre> <p><img src="https://i.stack.imgur.com/BNvcq.png" alt="enter image description here"></p> <p>in the image where we have cyan color iam placing image there.i need to animate the image from starting of black color.</p> <p>If any konw the answer please let me know.</p> <p>Thanks in advance.....</p>