iOS:UIView 过渡中的奇怪颜色:UIViewAnimationOptionTransitionCurlDown
我在这里真的很茫然,我试图在具有一定透明度的视图上使用 UIViewAnimationOptionTransitionCurlDown ,这是结果(视觉上),代码如下。我想要的是在没有奇怪阴影的情况下进行过渡。任何关于为什么会显示该阴影的见解也会有所帮助。它只发生在动画期间。
[UIView transitionWithView:sender
duration:15.0f
options:UIViewAnimationOptionTransitionCurlDown
animations:^{
[self modifyContentOfPageWith:sender];
}
completion:nil];
I'm really at a loss here, I am trying to use the UIViewAnimationOptionTransitionCurlDown on a view that has some transparency, and here is the result (visually), the code is below. What I want is for the transition to happen without the weird shadow. Any insight as to why that shadow is displaying would also be helpful. It only happens during the animation.
[UIView transitionWithView:sender
duration:15.0f
options:UIViewAnimationOptionTransitionCurlDown
animations:^{
[self modifyContentOfPageWith:sender];
}
completion:nil];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我尝试了同一段代码。从网上下载了一张黄色的粘性图像,发现图像的实际尺寸比活动图像大。因此,整个图像的阴影是在动画期间。因此,我剪切了图像的(不可见的)边框,使其适合黄色部分,并且神奇地完美工作。
I tried the same piece of code. Downloaded a yellow sticky image from the web and realized that the actual size of the image is bigger than the active image. Thus a shade of the whole image was during the animation. So I cut the (invisible) borders of the image that it would fit the yellow part and , magically, worked just perfect.