0

ある UIViewController から Storyboard を持つ UIViewController に移行するコードを以下に示します。

#import "How_FarViewController.h"

MainViewController *screen = [[MainViewController alloc] initWithNibName:nil bundle:nil];
screen.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:screen animated:YES];

しかし、私がそれを押すと、反転アニメーションが行われ、黒が表示されます. 私の問題は何ですか??

ありがとう、SebOH

4

2 に答える 2

0

これをIBActionに追加するだけで終わったので、とても簡単です!!

[[self presentingViewController] dismissViewControllerAnimated:YES completion:nil];
于 2013-12-22T23:26:25.640 に答える