iphone - 如何实现系统相机app的缩小动画效果?

标签 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 = 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/

相关文章:

iphone - ViewController 作为 subview

Iphone 键盘显示在所有应用程序上

javascript - 我可以使用Safari移动用户代理自动执行Apple Pay吗

ios - Firebase iOS 11 按下按钮后请求用户通知

iphone - 如何跟踪IOS5中的崩溃?

javascript - 从子对象(如 Iframe)收集的 iPad 方向信息

iphone - iOS 开发 : Why are the retain counts for my view controller so strange?

iphone - iphone sdk中Delegate的使用

iOS 8 pushViewController 不工作,在 iOS 7 中一切都按预期工作,零代码更改?

ios - NSInternalInconsistencyException : 'Invalid parameter not satisfying: !stayUp || CLClientIsBackgroundable(internal->fClient)'