Ios 无法从动画中隐藏子视图

Ios 无法从动画中隐藏子视图,ios,Ios,我正在尝试使用UITableViewCell子视图创建动画,同时隐藏2个子视图。 在动画中,我仍然可以看到子视图。 有什么想法吗 self.rightCloseButton.hidden = YES; self.leftCloseButton.hidden= YES; [UIView animateWithDuration:0.2f animations:^{ [self changeFramesOfSubviews]; } completion

我正在尝试使用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;
    }];

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

self.rightCloseButton和self.leftCloseButton的值是多少?它们是否确实指向要隐藏的UIView?或无?显示[自更改框架子视图];。