滑过 UITableViewCell,显示另一个单元格。框架?

发布于 2024-09-14 09:28:45 字数 274 浏览 3 评论 0原文

我正在尝试找到一个框架或自己制作一个可以做到这一点的框架:

当您在 UITableViewCell 上滑动/滑动时,会显示另一个单元格(带有在 Twitter、Facebook、电子邮件等上共享等选项)。 Twitter 应用程序已经有了这个,我想知道是否有一个开放的框架。

如果没有,你建议我从哪里开始自己做这个?

谢谢。


要检测滑动,请使用 Apple 的 UISwipeGestureRecognizer

I am trying to find either a framework or make one myself that can do this:

When you slide/swipe across a UITableViewCell, another cell gets displayed (with options such as Share on Twitter, Facebook, email etc).
The Twitter-app has got this, and I was wondering if there was an open framework for it.

If not, where do you recommend I start to make this on my own?

Thanks.


To detect a swipe, use Apple's UISwipeGestureRecognizer.

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

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

发布评论

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

评论(1

兰花执着 2024-09-21 09:28:45

几个月前我创建了同样的东西。不幸的是,我现在找不到代码本身,但这里有一些指南:

  1. 要处理滑动手势,请使用 这个 或 google - 有大量的滑动检测手册:)。
  2. 要显示不同的视图,请使用[UIView beginAnimations]。您可以显示新的 UIView 而不是 UITableViewCell 的 contentView。

如果您有疑问,请告诉我。

I created the same thing a couple of months ago. Unfortunately, I can't find the code itself right now, but here are some guidelines:

  1. To handle swipe gesture use examples like this or google - there are tons of swipe detection manuals :).
  2. To show different view, use [UIView beginAnimations]. You may show new UIView instead of UITableViewCell's contentView.

Please let me know if you have questions.

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