Created
April 2, 2017 21:25
-
-
Save ramamilaneh/195749fef07a1f399ce54e1d274b163d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewDidLoad { | |
[super viewDidLoad]; | |
[self.view setBackgroundColor:[UIColor whiteColor]]; | |
_videoBackgroundView = [[VideoView alloc] initWithFrame:self.view.frame]; | |
[self.view addSubview:_videoBackgroundView]; | |
[self setupViews]; | |
} | |
-(void)viewWillAppear:(BOOL)animated { | |
[super viewWillAppear:animated]; | |
[self.videoBackgroundView playVideo]; | |
} | |
-(void)viewDidDisappear:(BOOL)animated { | |
[super viewDidDisappear:animated]; | |
[self.videoBackgroundView pauseVideo]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment