gpt4 book ai didi

iOS:使用模态 pageFlip 在 UITableViewController 中制作奇怪的单元格动画

转载 作者:行者123 更新时间:2023-11-28 17:40:48 25 4
gpt4 key购买 nike

我想显示一个设置 View ,所以我想我可以使用 pageCurl 模态样式。我有一个 UIViewController,我从中展示:

Settings *settings = [[[Settings alloc] initWithStyle:UITableViewStyleGrouped] autorelease];
settings.view.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];
settings.modalTransitionStyle = UIModalTransitionStylePartialCurl;
settings.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentModalViewController:settings animated:YES];

当页面 curl 时,显示下面的 UITableViewControllercells subviews(标签和附属 View )似乎动画到位,这看起来很糟糕:

enter image description here enter image description here enter image description here

奇怪的是,动画永远不会发生在一个部分的顶部单元格上。这不会发生在其他 modalTransitionStyle 的 上,所以我想知道为什么会发生这种情况。这真的变得令人沮丧,因为我不知道如何阻止这种情况发生。

想法?

最佳答案

如果将 tableView 的 autoResizingMask 属性设置为 UIViewAutoresizingNone,我认为这不会发生。这可能是页面 curl 动画中的一个小错误。

关于iOS:使用模态 pageFlip 在 UITableViewController 中制作奇怪的单元格动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8208513/

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