如何实现类似于 OS X Lion Mail 中的对话的自定义视图?

发布于 2024-12-03 19:04:25 字数 339 浏览 3 评论 0原文

我想知道如何实现类似于邮件中对话视图的视图(对于 Lion)。

http://images.apple.com/macosx/whats-new/images /mail_conversation_screen.jpg

我想要看起来像一张纸放在背景上的效果。

我认为它可能只是一个基于视图的表视图。

朝着正确的方向推动就好了。只需要知道到哪里去寻找如何去做。

提前致谢。

I'm wondering how to implement views similar to the conversation views in mail (for Lion).

http://images.apple.com/macosx/whats-new/images/mail_conversation_screen.jpg

I want the effect where it looks like a sheet of paper laying on the background.

I'm thinking that it may just be a view based table view.

A nudge in the right direction would be fine. Just need to know where to look to find out how to do it.

Thanks in advance.

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

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

发布评论

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

评论(1

椒妓 2024-12-10 19:04:25

可能是基于视图的表格视图,或者只是具有一些简单平铺逻辑的普通容器视图(即“滚动每个子视图并设置它们的框架”)。不过,您正在寻找的效果可以通过启用背景阴影的图层支持视图轻松实现。

有几种完全有效的方法可以实现此目标(布局绘图部分)。选择一个,沿着路径开始,然后在出现问题时发布问题。

It could be a view based table view or just a normal container view with some simple tiling logic (ie, "roll through each subview and set their frames"). The effect you're looking for, though, can be easily accomplished with layer-backed views with a background shadow enabled.

There are several perfectly valid approaches to this goal (the layout and drawing parts). Pick one, start down the path, then post questions as problems arise.

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