diff --git a/.gitignore b/.gitignore index a3cd143..7b9465e 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ DerivedData # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control # # Pods/ +**/.DS_Store diff --git a/README.md b/README.md index 708b163..6ce5dd4 100644 --- a/README.md +++ b/README.md @@ -20,19 +20,33 @@ Light weight view controller which add a video as a full screen background for I - Enjoy :) ### Example +#### Programatic ``` objective-c - (void)viewDidLoad { [super viewDidLoad]; - + self.videoPath = [[NSBundle mainBundle] pathForResource:@"Video" ofType:@"mp4"]; self.repeat = YES; self.maskTintColor = [UIColor blackColor]; self.maskAlpha = 0.5f; - + [self play]; } ``` +#### StoryBoard +``` objective-c +- (void)viewDidLoad { + [super viewDidLoad]; + self.videoPath = [[NSBundle mainBundle] pathForResource:@"Video" ofType:@"mp4"]; + self.repeat = YES; + self.maskTintColor = [UIColor blackColor]; + self.maskAlpha = 0.5f; + + self.videoSpeed = 1.0f; + +} +``` ### Contact - [contact@lucas-ortis.com](contact@lucas-ortis.com) - [Facebook](https://www.facebook.com/lucasekhoo.ortis)