풀다운을 위해 스크롤 뷰 컨텐츠 삽입을 애니메이션으로 새로 고침하고 있습니다.iOS 코드가 주 스레드에서 commitAnimations에 충돌합니다.
NSLog(@" in main thread? %d", [NSThread isMainThread]); // prints 1
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.3];
[scrollView setContentInset:UIEdgeInsetsMake(0.0f, 0.0f, scrollView.contentInset.bottom, 0.0f)];
// Crash here
[UIView commitAnimations];
애니메이션을 커밋 할 때 충돌이 발생하고 주 스레드가 충돌합니다. 이 코드 블록을 제거하면 앱이 중단되지 않습니다. 이 코드 블록으로 상당히 좁혀진다면이 시점에서 충돌을 일으킬 수있는 것은 무엇입니까?