特別なアニメーションを実装したいのですが、誰かがすでにそれを行っているのではないかと思っています。複数のメールを選択すると、iPad メールからのこの非常にクールなステープル エフェクトは誰もが知っています。
そのアニメーションを iPad アプリに取り込みたいと思います。アプリ内購入が可能な UITableView があり、ユーザーが一度に複数の購入を行えるようにしたいと考えています。
ユーザーは tableView で複数の製品を選択できます。カスタム UITableViewCell からの画像を、この非常にクールな iPad のような効果で「一緒に留める」必要があります。
また、セルをこのスタックに移動させたいと考えています。これは私のコードです (ほとんどの場合、セルからの写真でパフォーマンスの問題が発生します)。
- (IBAction)setEditingTableView:(id)sender
{
if ([itemsTableView isEditing]) {
for (NSIndexPath *cellPath in [itemsTableView indexPathsForSelectedRows]) {
UITableViewCell *cell = [itemsTableView cellForRowAtIndexPath:cellPath];
if ([cell isSelected]) {
[UIView animateWithDuration:1.0 animations:^{
[[cell image] setFrame:[stackView frame]];
[[cell image] setCenter:[stackView center]];
}];
}
}
[itemsTableView setEditing:NO];
[sender setStyle:UIBarButtonItemStyleBordered];
}
else {
[itemsTableView setEditing:YES];
[sender setStyle:UIBarButtonItemStyleDone];
}
}
誰でも助けることができますか?
よろしくお願いします、ジュリアン