开发者

How can i make Twitter's row menu in iOS app?

开发者 https://www.devze.com 2023-01-17 16:52 出处:网络
Anybody can tell me how to make Twitter\'s row menu in iOS app like img below? This menu appear when i touch down move finger to left (Touch in UITableC开发者_如何学Pythonell of UITableView). Can

Anybody can tell me how to make Twitter's row menu in iOS app like img below?

How can i make Twitter's row menu in iOS app?

This menu appear when i touch down move finger to left (Touch in UITableC开发者_如何学Pythonell of UITableView). Can i make row menu like it? Thanks :)


That is indeed just a UIView with a background image and some controls/views on it.

If you want to get a similar behavior in which you swipe over the cell to reveal that view, you could use the new iOS4 UIGestureRecognizer to look for a swipe over the cell. Once it detects a swipe you can use a view animation to slide the new view in.

Link: UIGestureRecognizer Class Reference


I found an example project make a "Swipe to Reveal Menu like Tweetie". Look at it if you want to build a Menu like Tweetie.

http://thermoglobalnuclearwar.com/opensource/


Looks like a normal view with a specific background image and some buttons laid out horizontally.

0

精彩评论

暂无评论...
验证码 换一张
取 消