我正在尝试动画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;
})];
}];