Explorar o código

Show explorer by default #if DEBUG in example proj

Tanner Bennett %!s(int64=7) %!d(string=hai) anos
pai
achega
e3ac0d6ecc
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Example/UICatalog/AAPLAppDelegate.m

+ 3 - 0
Example/UICatalog/AAPLAppDelegate.m

@@ -68,10 +68,13 @@
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
 #if DEBUG
+    [[FLEXManager sharedManager] showExplorer];
     [[FLEXManager sharedManager] setNetworkDebuggingEnabled:YES];
     [self sendExampleNetworkRequests];
     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
     NSString *documents = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0];
     NSString *whereToSaveBob = [documents stringByAppendingPathComponent:@"Bob.plist"];