Tweetie как меню сильного удара

В Windows Server 2012, установка Apache 2.4, php 5.4, после того, как все остальное изменилось, это сработало ...

PHPIniDir "C:\php\"

на

PHPIniDir "C:/php/"

... да.

6
задан Mugunth 1 June 2009 в 03:13
поделиться

2 ответа

Each table view cell has a contentView that encompasses the whole area of the cell. Add your swipe-menu view as a single container view with an opaque background to the contentview so it's on top of everything else. Position it so it's flush left (x=0), set the width to 0, and set it as hidden. That single container can include any other subview (buttons, etc) and you can set the cell view itself as the target of the button events (then bubble it up to the parent table view along with cell index information).

When time comes to show it, set it to not hidden then use UIView animation to make the container width go from 0 to full table width. Set the duration pretty low (i.e. 0.2 seconds) so it's zippy. When you run the animation, the swipe-menu shows up over everything else in the cell content view. To make it disappear just reverse it (set the width to 0 in a UIView BeginAnimation block). You may also want to set an animation completion handler at the end and do some housekeeping there (set the container view to hidden, release memory, etc).

12
ответ дан 8 December 2019 в 16:09
поделиться

Я написал в твиттере как меню, полного кода нет, но я написал об этом в блоге. Надеюсь, это поможет!

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

3
ответ дан 8 December 2019 в 16:09
поделиться
Другие вопросы по тегам:

Похожие вопросы: