1

Tweetbot では、右にスワイプすると UITableViewCell にいくつかのクールなアニメーションが追加され、最終的に興味深い会話が明らかになりました。

また、テーブルセルの上にある他のビューをどのようにアニメーション化しますか? UIActivityMonitor のように、またはボタンのフェードインとフェードアウトのように?

編集モードに入ったとき、または選択されたときの答えを探しているのではなく、一般的な答えを探しています。みんなありがとう。

4

1 に答える 1

1
CGPoint location = [recognizer locationInView:tblview];
NSIndexPath* indexPath = [tblAim indexPathForRowAtPoint:location];

ProjectCell *cell = (ProjectCell *) [tblAim cellForRowAtIndexPath:indexPath];

if(cell.frame.origin.x!=0)
[UIView animateWithDuration:0.3 animations:^{  [cell setFrame:CGRectMake(0,cell.frame.origin.y, 320, 60 )];} completion:^(BOOL finish){
[UIView animateWithDuration:0.1 animations:^{[cell setFrame:CGRectMake(0-10,cell.frame.origin.y, 320, 60 )];} completion:^(BOOL finish){
[UIView animateWithDuration:0.1 animations:^{[cell setFrame:CGRectMake(0,cell.frame.origin.y, 320, 60 )];}];
                }];
            }];
于 2012-08-23T04:41:27.373 に答える