Question

I am using the following code for UIModalTransitionStyle view in my application when i click the button

 InfoViewController *infoViewController = [[InfoViewController alloc]initWithNibName:@"InfoViewController" bundle:nil];


infoViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;

[self.presentedViewController presentViewController:infoViewController animated:YES completion:NULL];

its worked perfecly in ios5 but i update the application ios6 it not worked. How can I handle this issue

Was it helpful?

Solution

This code works, tested in iOS 6.0 simulator.

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    self.moviePlayerController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:@"http://videoURL"]];
    self.moviePlayerController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;

    [self presentViewController:self.moviePlayerController animated:YES completion:nil];

}

Since the URL is invalid, the MPMoviePlayerViewController will just endlessly flip back and forth, but the point is that it works.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top