TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How does the Twitter iPhone app implement side swiping on a table?

14 点作者 boctor大约 14 年前

2 条评论

jazzychad大约 14 年前
argh, this isn't quite how the menu is implemented in tweetie. the tweet menu starts out <i>underneath</i> the tweet itself and the swipe causes the tweet to slide <i>over</i> the menu and out of the way.<p>The way they explain it, the tweet menu also slides in/out from offscreen with the tweet itself.<p>The difference is not really significant, but the effect is a bit different. I'm guessing the menu view just lives underneath of the tweet view in the table cell from the beginning, but i'm not completely sure.<p>tweetie's tweet menu also has a neat animation effect by having each menu button "pop" a little (zoom in and out quickly) as it is revealed when the tweet is sliding out of the way. subtle, but neat. then the tweet view "bounces" as it hits the left side wall as it slides back in.<p>not bashing the article, it is very informative; but the implementation in tweetie was very well thought out and is a bit more complicated than it lets on.<p>there is, however, a bug in tweetie with these menus. if you slide a tweet out and then slide it back in by touching somewhere else, you cannot slide the tweet out again until you somehow reload the view (e.g. by tapping on a tweet to view details then popping back out to the timeline).
评论 #2446072 未加载
aaronbrethorst大约 14 年前
Check out JBSlidingTableViewCell: <a href="http://cocoacontrols.com/platforms/ios/controls/jbslidingtableviewcell" rel="nofollow">http://cocoacontrols.com/platforms/ios/controls/jbslidingtab...</a>