1
어떻게하면 내 뷰의 모든 하위 뷰가 애니메이션으로 표시되지 않고 현재 페이지의 renderedView와 newPage의 뷰가 애니메이션으로 표시됩니까? 이것은 당신이 애니메이션을 만든 정확한 속성이있는 경우CATransition replaceSubView : with ... 모든 뷰를 애니메이션 처리합니다.
CATransition *transition = [CATransition animation];
[transition setType:kCATransitionPush];
[transition setSubtype:([self indexOfPage:currentPage] < [self indexOfPage:newPage]) ? kCATransitionFromRight : kCATransitionFromLeft];
NSDictionary *ani = [NSDictionary dictionaryWithObject:transition
forKey:@"subviews"];
[self setAnimations:ani];
[self.animator replaceSubview:currentPage.representedView with:newPage.representedView];