在模态呈现的视图控制器内部的视图

发布于 2025-02-01 02:01:18 字数 270 浏览 3 评论 0原文

我们有一个视图控制器,内部有一个UI表视图,并且它是使用模态表呈现的实现定型模态变大,当大大并到达表观中的第一个单元格时变成中等(或下一个较小的刀具)。有一个想法如何实施吗?

附加了该应用程序中的SS。

we have a view controller, have a ui table view inside it, and it's implemented using modal sheet presentation, we are trying to connect the scrolling of suitable view with the modal sheet scrolling like apple maps app, so that when start scrolling while in medium detent the modal become large and when large and reach to the first cell in table view become medium (or next smaller detent). have any one an idea how to implement this ?
enter image description here

attached a SS from the app.

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

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

发布评论

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

评论(1

千仐 2025-02-08 02:01:18

我没有能力在评论中问您,所以我假设您正在使用标准模式。如果是正确的,则应使用SheetPresentationController而不是标准模式。

这样,您就可以在不自动扩展的情况下滚动中滚动。

此外,您甚至可以阻止扩展,因此我鼓励您从WWDC查看有关表的视频 - https://developer.apple.com/videos/play/wwdc2021/10063/

人界面指南 -
https:> https://developer.apple.apple.apple.com/design/human/human/human/human/human/ - 界面guidelines/ios/views/shay/

I have no ability to ask you in comments, so I assume you're using standard modals. If it's true you should use sheetPresentationController instead of standard modals.

This way provides you an ability to scroll in the medium detent sheet without automatically expanding.

In addition you can even block expanding, so I encourage you to check this video from WWDC about sheets - https://developer.apple.com/videos/play/wwdc2021/10063/

Human Interface Guidelines -
https://developer.apple.com/design/human-interface-guidelines/ios/views/sheets/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文