gpt4 book ai didi

iOS Flip UIView 无阴影

转载 作者:搜寻专家 更新时间:2023-10-31 08:08:08 26 4
gpt4 key购买 nike

我使用 transitionFromView.TransitionFlipFromLeft 将一个 View 替换为另一个 View 。然后我想在 View 上方没有阴影的情况下翻转 View 。

UIView.transitionFromView(
self.postListView,
toView: self.userListView,
duration: 0.8,
options: .TransitionFlipFromLeft,
completion: nil
)

enter image description here

最佳答案

试试这个..

[UIView beginAnimations:@"View Flip" context:nil];
[UIView setAnimationDuration:3.25];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:YES];

[self.navigationController pushViewController:SecondViewController animated:NO];
[UIView commitAnimations];

这是在 swift 3 中执行卡片翻转动画的方法:

UIView.transition(来自: frontImageView,到:backImageView,持续时间:0.65,选项:.transitionFlipFromRight,完成:无)

关于iOS Flip UIView 无阴影,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38548847/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com