滚动视图中的UIView动画,AutoLayout显示问题

时间:2014-05-07 09:06:55

标签: ios objective-c uiview uiscrollview autolayout

我正在尝试动画UIViews作为子视图添加到scrollView.This工作正常没有自动布局,但是使用自动布局它似乎不起作用。

这是我正在做的事情:

            [UIView animateWithDuration:1.0 animations:^(void){

                [self.commenView setFrame:({
                    CGRect frame = self.commenView.frame;
                    frame.origin.y  = 335;
                    frame;

                })];

                [self.addDeleteCommentView setFrame:({
                    CGRect frame = self.addDeleteCommentView.frame;
                    frame.origin.y  = 405;
                    frame;

                })];

            }];

0 个答案:

没有答案