MPMoviePlayer와 관련하여 문제가 있습니다. 플레이어를 표시하기 위해 [self presentModalViewController:moviePlayer animated:YES];
을 사용하고 있습니다. 완료 버튼을 클릭하면MPMoviePlayer가 제대로 작동하지 않습니다.
(void) moviePlayBackDidFinish:(NSNotification*)notification
{
[[UIApplication sharedApplication] setStatusBarHidden:YES];
// Remove observer
[[NSNotificationCenter defaultCenter] removeObserver:self
name:MPMoviePlayerPlaybackDidFinishNotification
object:nil];
//[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:1] animated:YES];
[self dismissModalViewControllerAnimated:YES];
//[self.view removeFromSuperview];
}
메서드 호출이 표시됩니다. 이전보기로 이동하면 이전보기의 x 및 y 세로 좌표가 방해 받고 모든 것이 변경됩니다. 즉,보기가 변경됩니다. 어떤 제안? 방법 presentMoviePlayerViewControllerAnimated: 및 dismisMoviePlayerViewControllerAnimated:를 사용하는 대신 presentModalViewController:animated:
/dismissModalViewControllerAnimated:
왜이 코드가 : [[UIApplication sharedApplication] setStatusBarHidden : YES]; 왜 당신은 상태 표시 줄을 숨기려고합니까? – Hanuman
와우 덕분에 하누만 ... 해결되었습니다 !!! – Maulik
하지만 여전히 한 가지 .. 비디오를 처음 시작하면 완료 버튼이 사라지고 두 번째로 나타납니다 !!! 어떤 해결책? – Maulik