系统的相机应用具有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);
}];
这可能不是您正在寻找的动画,但它应该给您一个良好的开端。
关于iphone - 如何实现系统相机app的缩小动画效果?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9954369/