효과를 수신 거부 달성했다. 샘플 앱은 애니메이션을 사용하지 않으며 내가 본 모든 포럼에서는이 방법을 사용하여 실제로 애니메이션을 구현하는 방법을 언급하지 않습니다. 누군가가 이것을 사용하여 기본적인 바운스 효과 (중심으로 재설정 한 후 몇 번 반송 함)를 달성하는 방법을 설명 할 수 있습니까?ECSlidingViewController 애니메이션 난 아무데도 사용 resetTopViewWithAnimations의 예를 찾을 수 없습니다
https://github.com/edgecase/ECSlidingViewController
- (void)resetTopViewWithAnimations:(void(^)())animations onComplete:(void(^)())complete
{
[self topViewHorizontalCenterWillChange:self.resettedCenter];
[UIView animateWithDuration:0.25f animations:^{
if (animations) {
animations();
}
[self updateTopViewHorizontalCenter:self.resettedCenter];
} completion:^(BOOL finished) {
if (complete) {
complete();
}
[self topViewHorizontalCenterDidChange:self.resettedCenter];
}];
}