Skip to content

Instantly share code, notes, and snippets.

@objectiveSee
Last active August 29, 2015 13:56
Show Gist options
  • Save objectiveSee/8842468 to your computer and use it in GitHub Desktop.
Save objectiveSee/8842468 to your computer and use it in GitHub Desktop.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_updateNinja) name:kEANotificationBackgroundManagerUpdate object:nil];
}
return self;
}
- (void)_updateNinja
{
EALog(@"Ninja happened!");
// [self.view removeFromSuperview];
self.view = nil;
self.questionCard = nil;
self.cardScrollView = nil;
[self view];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment