Iphone 如何实现系统摄像头应用程序';s收缩动画效果?

Iphone 如何实现系统摄像头应用程序';s收缩动画效果?,iphone,ios,ipad,animation,camera,Iphone,Ios,Ipad,Animation,Camera,系统的摄像头应用程序具有UI效果。拍照后,它将显示动画,即照片收缩并移动到左下角 如何在我的应用程序中实现该效果 谢谢。在您正在尝试收缩的视图中,请调用以下代码: [UIView animateWithDuration:1.0 animations:^{ // self is the view in this case // if you call this from the controller, use self.view self.frame = CGRectMak

系统的摄像头应用程序具有UI效果。拍照后,它将显示动画,即照片收缩并移动到左下角

如何在我的应用程序中实现该效果


谢谢。

在您正在尝试收缩的视图中,请调用以下代码:

[UIView animateWithDuration:1.0 animations:^{
    // self is the view in this case
    // if you call this from the controller, use self.view
    self.frame = CGRectMake(self.frame.origin.x, self.frame.origin.y, smallWidth, smallHeight);
    self.bounds = CGRectOffset(self.bounds, amountToMoveX, amountToMoveY);
}];
这可能不是你想要的动画,但它应该给你一个好的开始