PhotoBrowse icon indicating copy to clipboard operation
PhotoBrowse copied to clipboard

疑问

Open mike1023 opened this issue 8 years ago • 0 comments

originCell = originView!.cellForItemAtIndexPath(indexPath!) let originFrame = originView?.convertRect(originCell!.frame, toView: UIApplication.sharedApplication().keyWindow) UIView.animateWithDuration(1, animations: { //我对下面的这句代码有疑问,我按照你的Demo写,在这一句之前,我在外面已经给animateImageView设置了frame,最终的originFrame也设置好了,但是当我点击大图的时候,animateImageView的frame并不是以之前设置好的frame开始变化,而是宽高变的和originFrame的宽高一样,下,x,y好像是从一个固定的位置开始移动.我不知道这是为什么,能帮忙解答一下吗?谢谢(我的邮箱:[email protected]) animateImageView.frame = originFrame! transitionView?.alpha = 0 }) { (_) in animateImageView.removeFromSuperview() transitionContext.completeTransition(true) } }

mike1023 avatar Dec 09 '16 02:12 mike1023