Reputation: 3259
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
Upvotes: 0
Views: 602
Reputation: 9297
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.
Upvotes: 1