문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top