【发布时间】:2014-03-18 17:32:48
【问题描述】:
以下 MPMoviePlayerController 不会出现在我的 iOS 应用程序中。
我试图让它在我的 tableView 行被选中时出现:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:videoUrl]];
[player setFullscreen:YES];
[player play];
[self.tableView addSubview:player.view];
}
有什么想法吗?
【问题讨论】:
标签: ios objective-c tableview mpmovieplayer