0

"모달 뷰 컨트롤러"가 iOS4에서 일부 변경 사항을 발견했을 수 있습니다. 아래 예제 코드를 사용하여 버튼을 사용하여 동영상 플레이어 컨트롤러를 수행하려면 http://iosdevelopertips.com/video/getting-mpmovieplayercontroller-to-cooperate-with-ios4-3-2-ipad-and-earlier-versions-of-iphone-sdk.html모달 뷰 컨트롤러를 닫은 후

버튼을 사용했습니다. iOS3에서 페이지 컨트롤은 모달 뷰 컨트롤러를 닫은 후에도 작동 할 수 있습니다. 하지만 iOS4에서는 돌아 가기 위해 왼쪽 상단 모서리에있는 탐색 모음을 누른 다음보기로 다시 셀을 클릭하면 페이지 컨트롤이 다시 작동합니다.

이 문제의 주된 원인은 무엇입니까? 코드 복사 다음과 TestViewController ..Becoz 지난

+2

를 오토 릴리즈 – VoodooChild

답변

1

여기 처음 당신이`Modal` 그것을 요구하는 실수를 생각에서, CustomMoviePlayer

- (void)loadMoviePlayer 
{ 
      // Play movie from the bundle 

NSString *path = [[NSBundle mainBundle] pathForResource:@"Movie-1" ofType:@"mp4" inDirectory:nil]; 

// Create custom movie player 
    moviePlayer = [[CustomMoviePlayerViewController alloc] initWithPath:path]; 

// Show the movie player as modal 
[self presentModalViewController:moviePlayer animated:YES]; 

// Prep and play the movie 
    [moviePlayer readyPlayer];  
} 
관련 문제