如何从“部分卷曲”返回类型转换

发布于 2025-01-03 06:33:52 字数 215 浏览 5 评论 0原文

我正在尝试使用部分卷曲转场来显示主视图下方的选项视图。这与触摸地图应用程序右下角的“卷页”按钮相同。

我可以成功执行选项视图的 segue,我的问题是返回主视图。我希望复制地图应用程序的反向动画效果,因为边缘卷曲回平坦并显示主视图。

创建另一个转场以返回主视图似乎不合逻辑(如果我不使用部分卷曲转场,我会做什么),因为返回转场与原始转场相关联。

预先感谢您的任何帮助!

I am attempting to use a partial curl segue to reveal an options view underneath my main view. This is identical to touching the "page curl" button in the bottom right corner of the Maps app.

I can successfully execute the segue to the option view, my problem is returning to the main view. I'm hoping to replicate the reverse animation effect of the Maps app as the edge curls back flat and the main view is shown.

It doesn't seem logical to create another segue to return back to the main view (what I would do if I were not using the partial curl segue) because the return segue is associated with the original segue.

Thanks in advance for any help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

も让我眼熟你 2025-01-10 06:33:52

试试

-(IBAction) buttonPressed{
    [self dismissModalViewControllerAnimated:YES];
}

这应该可行!

或者我相信你可以按翻页的背面,它会自动返回,无需添加任何代码!希望有帮助!

try

-(IBAction) buttonPressed{
    [self dismissModalViewControllerAnimated:YES];
}

This should work!

Or i believe you can press the back side of the turned page and it will return automatically with out adding any code! Hope that helps!

自由如风 2025-01-10 06:33:52

在 Swift 中,dismissModalViewControllerAnimated 已被重命名:

@IBAction func handleAddButton(_ sender: Any) {
    self.dismiss(animated:true, completion: {})
}

In Swift dismissModalViewControllerAnimated has been renamed:

@IBAction func handleAddButton(_ sender: Any) {
    self.dismiss(animated:true, completion: {})
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文