애니메이션을 구현하려고합니다. iPhone 갤러리에 들어가서 이미지를 누르면 전체 화면 이미지가 나타납니다. 아래에서 휴지통 버튼이있는 툴바를 볼 수 있습니다. 이 버튼을 누르면 이미지가 애니메이션으로 삭제됩니다. 이 구현하려고하지만, 어떻게 이미지, 사과 사용의 변환을 구현하는 몰라요. 이 최고입니다, 내가 할 수있는 : 애니메이션, iPhone 포토 갤러리에서 삭제하는 경우
[UIView transitionWithView:self.view duration:0.1 options:UIViewAnimationOptionTransitionCrossDissolve animations:^{
[self.view addSubview:scrollImageView];
} completion:^(BOOL finished) {
[UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionAllowUserInteraction animations:^{
CGRect frame = scrollImageView.frame;
frame.size = CGSizeMake(frame.size.width * 0.75, frame.size.height * 0.75);
frame.origin = CGPointMake((size.width - frame.size.width)/2, (size.height - frame.size.height)/2);
scrollImageView.frame = frame;
} completion:^(BOOL finished) {
[UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionAllowUserInteraction animations:^{
CGRect frame = scrollImageView.frame;
frame.size = CGSizeMake(frame.size.width * 0.05, frame.size.height * 0.05);
frame.origin = CGPointMake(size.width, size.height);
scrollImageView.frame = frame;
CGAffineTransform transform = scrollImageView.transform;
CGAffineTransform rotatedTransform = CGAffineTransformRotate(transform, 45 * 3.14/180);
scrollImageView.transform = rotatedTransform;
} completion:^(BOOL finished) {
[scrollImageView removeFromSuperview];
}];
}];
}];
미리 감사드립니다.
업데이트 내가 알고있는 것처럼, 내가 코어 애니메이션으로이 애니메이션을 할 수는 없지만, 누군가가 나에게하지만, OpenGL을 사용하지 않고 아이폰 갤러리 애니메이션에 가장 시뮬 애니메이션을 조언 할 수있다?
는하지만, OpenGL을 사용하지 않고 나 애니메이션 아이폰 갤러리 애니메이션에 가장 시뮬에게 조언을 할 수 있습니까? –
이전에 [블로그 게시물] (http://ronnqvist.tumblr.com/post/23234805389/unobtrusive-hints-of-joy)에서 Safari의 "Open in background"애니메이션을 복제하려고했습니다. 그것은 매우 유사하지만 동시에 매우 다릅니다. 아마 뭔가를 배우고 애니메이션에 필요한 부분을 적용 할 수 있습니다. –