0

ビューにボタンがあり、次のビューをフリップビューで開く必要があります。

誰か助けてもらえますか?

4

1 に答える 1

3

ビューはビューコントローラによって管理されていると仮定します。フリップインするビューも同様です。

これを行う比較的簡単な方法は、presentModalViewController:animatedを使用して新しいビューを表示することです。

MyViewController* mvc = [[[MyViewController alloc] init] autorelease];
mvc.modalPresentationStyle = UIModalPresentationFullScreen;
mvc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController: mvc animated: YES];
于 2010-11-16T06:53:19.980 に答える