Skip to content

Commit

Permalink
Using ```objc to better highlight code blocks :)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaviSoto committed May 28, 2013
1 parent 1efdd60 commit cdb0ff5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ Use `XCDYouTubeVideoPlayerViewController` the same way you use a `MPMoviePlayerV

#### Present the video in full-screen

```
```objc
XCDYouTubeVideoPlayerViewController *videoPlayerViewController = [[XCDYouTubeVideoPlayerViewController alloc] initWithVideoIdentifier:@"9bZkp7q19f0"];
[self presentMoviePlayerViewControllerAnimated:videoPlayerViewController];
```
#### Fetch the video identifier asynchronously
```
```objc
XCDYouTubeVideoPlayerViewController *videoPlayerViewController = [XCDYouTubeVideoPlayerViewController new];
[self presentMoviePlayerViewControllerAnimated:videoPlayerViewController];
Expand All @@ -53,7 +53,7 @@ NSURL *url = [NSURL URLWithString:@"https://gdata.youtube.com/feeds/api/standard

#### Present the video in a non full-screen view

```
```objc
XCDYouTubeVideoPlayerViewController *videoPlayerViewController = [[XCDYouTubeVideoPlayerViewController alloc] initWithVideoIdentifier:@"9bZkp7q19f0"];
[videoPlayerViewController presentInView:self.videoContainerView];
```
Expand All @@ -70,4 +70,4 @@ Cédric Luthi
## License
XCDYouTubeVideoPlayerViewController is available under the MIT license. See the LICENSE file for more information.
XCDYouTubeVideoPlayerViewController is available under the MIT license. See the LICENSE file for more information.

0 comments on commit cdb0ff5

Please sign in to comment.