Skip to content

Instantly share code, notes, and snippets.

@stevenhuey
Created February 9, 2013 18:25
Show Gist options
  • Save stevenhuey/4746435 to your computer and use it in GitHub Desktop.
Save stevenhuey/4746435 to your computer and use it in GitHub Desktop.
Our changes to the application:didFinishLaunchingWithOptions: method.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
fDebugger = [PDDebugger defaultInstance];
[fDebugger enableNetworkTrafficDebugging];
[fDebugger forwardAllNetworkTraffic];
[fDebugger enableCoreDataDebugging];
[fDebugger addManagedObjectContext:self.managedObjectContext withName:@"Popular on 500px"];
[fDebugger enableViewHierarchyDebugging];
[fDebugger connectToURL:[NSURL URLWithString:@"ws://127.0.0.1:9000/device"]];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent];
UINavigationController *navigationController = (UINavigationController *)self.window.rootViewController;
AFMasterViewController *controller = (AFMasterViewController *)navigationController.topViewController;
controller.managedObjectContext = self.managedObjectContext;
return YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment