Skip to content

Commit

Permalink
change to delegate callback thanks to Alexis Hildebrandt
Browse files Browse the repository at this point in the history
  • Loading branch information
jchris committed Mar 10, 2011
1 parent 62d6f73 commit ddd459f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Demo/Classes/DemoAppDelegate.m
Expand Up @@ -30,8 +30,12 @@ @implementation DemoAppDelegate
-(void)couchbaseDidStart
{
NSLog(@"CouchDB is Ready, go!");

// Tell RootViewController to stop spinning
[self.navigationController.visibleViewController couchbaseDidStart];
UIViewController* vc = self.navigationController.visibleViewController;
if ([vc respondsToSelector:@selector(couchbaseDidStart)]) {
[self.navigationController.visibleViewController performSelector:@selector(couchbaseDidStart)];
}
}

#pragma mark -
Expand Down

0 comments on commit ddd459f

Please sign in to comment.