* .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];
반응형
'iOS 초보' 카테고리의 다른 글
UIActivityViewController, 카카오링크 연동 (0) | 2015.04.03 |
---|---|
iOS, googlemap, 마커가 모두 보이도록 지도 조정 (0) | 2015.03.30 |
맥, ios, thrift (0) | 2015.03.12 |
autolayout, 제약조건 동적 생성 (0) | 2015.02.16 |
iOS xcode6 pch 파일추가 (0) | 2015.02.12 |