【发布时间】:2013-04-17 04:23:37
【问题描述】:
我在播放视频时使用[[UIApplication sharedApplication] setStatusBarHidden:YES]; 隐藏状态。但是 statusBar 正在显示。
代码:
MPMoviePlayerViewController *mpviewController = [[MPMoviePlayerViewController alloc]initWithContentURL:[NSURL fileURLWithPath:path]];
[mpviewController.view setFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
[self.view addSubview:mpviewController.view];
[[UIApplication sharedApplication]setStatusBarHidden:YES];
[self presentMoviePlayerViewControllerAnimated:mpviewController];
【问题讨论】:
-
@Hari:我试过了。但没有工作
标签: iphone objective-c media-player