Title / Description
Code // // ShareKitAppDelegate.m // ShareKit // // Created by Nathan Weiner on 6/4/10. // Copyright Idea Shower, LLC 2010. All rights reserved. // #import "ShareKitAppDelegate.h" #import "RootViewController.h" #import "SHKReadItLater.h" #import "SHKFacebook.h" #import "Yozio.h" #include <sys/socket.h> #include <sys/sysctl.h> #include <net/if.h> #include <net/if_dl.h> @implementation ShareKitAppDelegate @synthesize window; @synthesize navigationController; #pragma mark - #pragma mark Application lifecycle - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [Yozio configure:@"8440c580-ee54-012f-9348-388d122de30a" secretKey:@"8440d130-ee54-012f-9349-388d122de30a"]; [Yozio initializeExperiments]; [Yozio userLoggedIn:@"jimmy"]; [Yozio userLoggedIn:@"jimmy" properties:[NSDictionary dictionaryWithObject:@"bob" forKey:@"frank"]]; [window addSubview:[navigationController view]]; [window makeKeyAndVisible]; navigationController.topViewController.title = SHKLocalizedString(@"Examples"); [navigationController setToolbarHidden:NO]; [self performSelector:@selector(testOffline) withObject:nil afterDelay:0.5]; return YES; } - (void)testOffline { [SHK flushOfflineQueue]; } - (void)applicationWillTerminate:(UIApplication *)application { // Save data if appropriate } #pragma mark - #pragma mark Memory management - (void)dealloc { [navigationController release]; [window release]; [super dealloc]; } @end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code