无法隐藏动画中的子视图

时间:2014-03-23 18:56:40

标签: ios

我正在尝试使用UITableViewCell子视图创建动画,同时隐藏2个子视图。 在动画中我仍然可以看到子视图。 任何想法?

    self.rightCloseButton.hidden = YES;
    self.leftCloseButton.hidden= YES;

    [UIView animateWithDuration:0.2f animations:^{
        [self changeFramesOfSubviews];
    } completion:^(BOOL finished) {

        self.rightCloseButton.hidden = NO;
        self.leftCloseButton.hidden= NO;
    }];

1 个答案:

答案 0 :(得分:0)

嗯,我没注意到这个动画是在其他动画中运行的。删除第一个,解决此问题。

相关问题