iOS curl up animation to remove uiimageview

混江龙づ霸主 提交于 2019-12-04 14:45:47

Your view parameter is sender.view.superview which means you want the superview to animate. Just remove the superview part.

Edit: also, for something to animate, it must be animatable property. Removing a view from superview has nothing to do with it's properties. You could animate the view to 0 alpha and on completion of that animation remove it from superview like this:

[UIView transitionWithView:sender.view
                  duration:1.5
                   options:UIViewAnimationOptionTransitionCurlUp                           
                animations:^ { sender.view.alpha = 0; }
                completion:^ { [sender.view removeFromSuperview]; }];
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!