Tweetie as a scroll menu

How can I implement a tweetie, for example, napkins?

I ended up developing a tableviewcontroller using customcell. The custom cell implements touchhesbegan and touchhesMoved. It also reports gesture calls using the selector to the parent tableview controller.

Now, how should I hide the "Swiped" cell and replace it with "viewing the swipe menu" and how do I get actions from the buttons present in swipeview?

+6
iphone cocoa-touch uikit uitableview
source share
2 answers

Each table view cell has a contentView that spans the entire cell area. Add your view to the browse menu as a single container with an opaque background for the content to be on top of everything else. Position it so that it flushes to the left (x = 0), set the width to 0 and set it as hidden. This single container can include any other subtasks (buttons, etc.), and you can set the cell view as a button event object (then move it in the parent table view along with the cell index information).

When the time comes to show it, set it not hidden, and then use the UIView animation to move the width of the container from 0 to the full width of the table. Set the duration to pretty low (i.e. 0.2 seconds) to make it invisible. When you start the animation, the scroll menu is displayed in everything else in the cell content view. To make it disappear, just change it (set the width to 0 in the BeginAnimation UIView block). You can also set the animation completion handler at the end and do some homework (set the container view to hidden, free up memory, etc.).

+12
source share

I made a menu with tweets, there is no complete code, but I wrote about it on the blog. Hope this helps!

http://petersteinberger.com/2010/01/tweetie-like-swipe-menu-for-iphone-apps/

+3
source share

All Articles