나는 다음과 같은 애니메이션을 구현하기 위해 노력하고있어 : 하위 뷰의 일부 움직임과 결합UIView의 그룹 애니메이션
yourSubView.transform = CGAffineTransformMakeScale(0.01, 0.01);
[UIView animateWithDuration:0.4 delay:0 options:UIViewAnimationOptionCurveEaseOut animations:^{
//change time duration according to requirement
// animate it to the identity transform (100% scale)
yourSubView.transform = CGAffineTransformIdentity;
} completion:^(BOOL finished){
// if you want to do something once the animation finishes, put it here
}];
. 핵심 애니메이션에서 애니메이션을 결합 할 수 있지만 UIView 애니메이션에서 어떻게 할 수 있습니까?
이 코드를 UIView 애니메이션에서 Core 애니메이션으로 변환 할 수 있습니까?
yourSubView.transform = CGAffineTransformMakeScale(0.01, 0.01);
[UIView animateWithDuration:0.4 delay:0 options:UIViewAnimationOptionCurveEaseOut animations:^{
//change time duration according to requirement
// animate it to the identity transform (100% scale)
yourSubView.transform = CGAffineTransformIdentity;
} completion:^(BOOL finished){
// if you want to do something once the animation finishes, put it here
}];
: yourSubView.transform CGAffineTransformMakeScale = (0.01, 0.01); [UIView animateWithDuration : 0.4 지연 : 0 옵션 : UIViewAnimationOptionCurveEaseOut 애니메이션 :^{ // 요구 사항에 따라 기간 변경 // IDT (100 % 눈금)로 애니메이션 적용 yourSubView.transform = CGAffineTransformIdentity; } 완료 :^(BOOL 완료) { // 일단 애니메이션이 끝나면 무언가를하고 싶다면 여기에 넣으십시오. }]; – Juan
수정 된 답변은 스케일링 예제를 보여줍니다 – CSmith