당신이 할 수있는 ,
-(void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
CGAffineTransform leftTransform = CGAffineTransformRotate(CGAffineTransformIdentity, RADIANS(-10.0));
CGAffineTransform rightTransform = CGAffineTransformRotate(CGAffineTransformIdentity, RADIANS(10.0));
_myView.transform = leftTransform; //Here `_myView` is the your view on which you want animations!
[UIView beginAnimations:@"youCanSetAnimationIdHere" context:(__bridge void * _Nullable)(_myView)];
[UIView setAnimationRepeatAutoreverses:YES];
[UIView setAnimationRepeatCount:5];
[UIView setAnimationDuration:0.25];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(animationCompletedWithAnimationId:isCompleted:view:)];
_myView.transform = rightTransform;
[UIView commitAnimations];
}
,
이 viewDidAppear
에서 라디안 다음
#define RADIANS(degrees) (((degrees) * M_PI)/180.0)
로도 변환 할 라디안 정의, 그런 짓을하고 animationCompletedWithAnimationId
방법은 같아야합니다
- (void) animationCompletedWithAnimationId:(NSString *)animationID isCompleted:(NSNumber *)isCompleted view:(UIView *)view
{
if ([isCompleted boolValue]) {
UIView *myView = view;
myView.transform = CGAffineTransformIdentity;
}
}
그리고 결과는
입니다.

요구 사항에 따라 반복 횟수와 라디안을 변경할 수 있습니다!
수행 한 작업을 표시 할 수 있습니까? – Shebuka
검색 할 키워드 : 'ios jiggle animation for uiview' – DonMag
이 링크를 통해 가보 았습니까? - https://stackoverflow.com/questions/3703922/how-do-you-create-a-wiggle-animation-similar- 아이폰 삭제 애니메이션 https://stackoverflow.com/questions/929364/how-to-create-iphones-wobbling-icon-effect –