gpt4 book ai didi

iphone - iOS 上的页面 curl

转载 作者:技术小花猫 更新时间:2023-10-29 10:59:40 29 4
gpt4 key购买 nike

我四处寻找类似的帖子,但没有找到解决方案。我正在寻找像这样的简单翻页动画(没有手指跟踪):http://www.youtube.com/watch?v=_vOYvaNhSHw

是否可以创建或许可它?

非常感谢您的帮助。

最佳答案

这段代码可以解决问题:

[UIView beginAnimations:@"Flip" context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:self.base.view cache:YES];

[user.view removeFromSuperview];
[base.view addSubview:home.view];

[UIView commitAnimations];

在此示例中,删除了“用户” View Controller ,并添加了“主页” View Controller ,并带有类似翻页的转换

关于iphone - iOS 上的页面 curl ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5435547/

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