0
-(IBAction)buttonPressed1:(id)sender 
{ 
SignView *tempVC = [[SignView alloc] initWithNibName:@"SignView" bundle:Nil]; 
[UIView beginAnimations:nil context:nil]; 
[UIView setAnimationTransition: UIViewAnimationTransitionCurlUp forView:self.view cache:YES]; 
[UIView setAnimationDelay:0.0f]; 
[UIView setAnimationDuration:0.2f]; 
[self presentModalViewController:tempVC animated:YES]; 
[tempVC passDataWithString:button1.titleLabel.text andColor:currentlySelectedColor isNightModeOn:nightMode.on]; 
[UIView commitAnimations]; 
} 

아무도 내가이 코드가 작동하지 않는 이유를 알아낼 수 있습니까?코어 애니메이션보기 전환에 관한 질문

답변

1

이 메소드는 중첩 될 수없는 beginAnimations : 및 commitAnimations를 호출합니다.

[self presentModalViewController:tempVC animated:YES]; 

그래서 beginAnimations 전에 또는 commitAnimations 이후로 이동하십시오.

+0

음 두 곳으로 이동했는데 UIView는 페이지 선회처럼 뒤틀리지 않습니다. SignView는 컬링 대신 제자리에 들어갑니다. –