iOS - Use AVPlayerViewController in AVKit obj-c
<p>I am trying to update this deprecated method:
'presentMoviePlayerViewControllerAnimated'
however I am not able to import AVKit and use AVPlayerViewContoller. It seems like my Xcode is not seeing this framework somehow.</p>

<p>Here is my code:</p>

<p><em>MatchDetailsVC.m</em></p>

<pre><code>   -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath (NSIndexPath *)indexPath {
YoutubeVideoModel* video = [_videos objectAtIndex:indexPath.row];

XCDYouTubeVideoPlayerViewController *videoPlayerViewController = [[XCDYouTubeVideoPlayerViewController alloc] initWithVideoIdentifier:video.videoID];
   =&gt;[self presentMoviePlayerViewControllerAnimated:videoPlayerViewController];
</code></pre>

<p><em>Cannot access the AVKit files:</em>
<a href="https://i.stack.imgur.com/LYehF.png" rel="nofollow noreferrer">using CM + click</a></p>

<p><em>MatchDetalisVC.m</em> UPDATE</p>

<pre><code>[self presentViewController:videoPlayerViewController animated:YES completion:nil];
</code></pre>

<p>Changed the last line with this. No errors. It seems I don't have to #import AVKit in my ViewController as well. Is it correct though?</p>