Browse Source

Show explorer by default #if DEBUG in example proj

Tanner Bennett 7 years ago
parent
commit
e3ac0d6ecc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Example/UICatalog/AAPLAppDelegate.m

+ 3 - 0
Example/UICatalog/AAPLAppDelegate.m

@@ -68,10 +68,13 @@
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
 {
 #if DEBUG
 #if DEBUG
+    [[FLEXManager sharedManager] showExplorer];
     [[FLEXManager sharedManager] setNetworkDebuggingEnabled:YES];
     [[FLEXManager sharedManager] setNetworkDebuggingEnabled:YES];
     [self sendExampleNetworkRequests];
     [self sendExampleNetworkRequests];
     self.repeatingLogExampleTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(sendExampleLogMessage) userInfo:nil repeats:YES];
     self.repeatingLogExampleTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(sendExampleLogMessage) userInfo:nil repeats:YES];
 
 
+    [[NSUserDefaults standardUserDefaults] setObject:@"foo" forKey:@"FLEXExamplePrefFoo"];
+    
     // For testing unarchiving of objects
     // For testing unarchiving of objects
     NSString *documents = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0];
     NSString *documents = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0];
     NSString *whereToSaveBob = [documents stringByAppendingPathComponent:@"Bob.plist"];
     NSString *whereToSaveBob = [documents stringByAppendingPathComponent:@"Bob.plist"];