Created
February 9, 2013 18:25
-
-
Save stevenhuey/4746435 to your computer and use it in GitHub Desktop.
Our changes to the application:didFinishLaunchingWithOptions: method.
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
- (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