私はページカーリング効果を使用しています。ボタンをクリックすると、ページを通過できました(つまり、UIView間)。次のコードは同じものを示しています。
UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.5];
if ([sender tag] == 1) {
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:placeholder cache:YES];
}
else {
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:placeholder cache:YES];
}
if (view1OnTop) {
[view1 removeFromSuperview];
[placeholder addSubview:view2];
}
else {
[view2 removeFromSuperview];
[placeholder addSubview:view1];
}
[UIView commitAnimations];
view1OnTop = !view1OnTop;
これで私はUIView間でカールすることができましたが、私の質問は、2つ以上のクラス間でこの種の遷移を適用できるでしょうか?前もって感謝します