1

我想实现一个特殊的动画,我想知道是否有人已经这样做了。每个人都知道,选择多个邮件时,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];
    }
}

在此处输入图像描述

有人可以帮忙吗?

谢谢,致以诚挚的问候,朱利安

4

0 回答 0