ビューを切り替えようとしています。クラスは UINavigationController から継承します。IBAction でこのコードを使用しています。
CellSubview *personView = [[CellSubview alloc] init]; // The new navigation controller
self.modalTransitionStyle = 0; // tried all 3 of the options
[self presentModalViewController:personView animated:YES];
[personView release];
いつ :
@interface CellSubview : UINavigationController
ビューを右にスライドさせることはできません。(ほとんどのアプリケーションがそうであるように)
それは常にボトムアップから来ており、オプションではありません:
personView.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
// or
personView.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
oldViewController.view を左にスライドさせ、新しい newViewController.view を右からスライドさせたいだけです。
あなたのアドバイスに感謝します
イタイ