0

セルがのときにUITableViewアニメーション化することは可能ですか?- deselectRowAtIndexPath:animatedselectedBackgroundViewUIImageView

塗りつぶしのときのように、画像をフェードアウトさせたいと思います。

4

1 に答える 1

0

私のプロジェクトでは、選択した状態の写真があり、次のように実装しています:

UIView *background = [[UIView alloc] initWithFrame:cell.frame];
background.backgroundColor = [UIColor colorWithRed:239/255.0 green:237/255.0 blue:231/255.0 alpha:1.0];
cell.backgroundView = background;

UIView *selectedBackground = [[UIView alloc] initWithFrame:cell.frame];
selectedBackground.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"selecetedCell.png"]];
cell.selectedBackgroundView = selectedBackground;

多分それはあなたに適しています

于 2012-08-11T08:47:21.850 に答える