* .h 파일에 constraints IBOutlet 생성
IBOutlet NSLayoutConstraint* constraintTabLineLeft;

* Interface Builder 에서 원하는 constraints IBOutlet 과 연결한다.

constraintTabLineLeft.constant = SCREEN_W/3*2;
[self setNeedsUpdateConstraints];
void (^blockAnimation) (void);
blockAnimation = ^(void)
{
  [self layoutIfNeeded];
};
[UIView animateWithDuration:0.2 animations:blockAnimation completion:nil];



반응형
Posted by 돌비
,