Skip to content

Instantly share code, notes, and snippets.

@saiday
Created March 14, 2014 19:54
Show Gist options
  • Select an option

  • Save saiday/9555525 to your computer and use it in GitHub Desktop.

Select an option

Save saiday/9555525 to your computer and use it in GitHub Desktop.
add/remove delegates
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
[[HysteriaPlayer sharedInstance] addDelegate:self];
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
[[HysteriaPlayer sharedInstance] removeDelegate:self];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment