Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted by Julez ( 15 years ago )
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
    
 [application registerForRemoteNotificationTypes: (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound)];
 
 XLog("Application started with Options: %@", launchOptions);
 
 if ([[NSUserDefaults standardUserDefaults] objectForKey:@"skip_form_select"] == nil) {
  [self registerUserDefaults];
 }
 
 XLog("initiing DataFetcher");
 SubstituteFetcher *dataFetcher = [[SubstituteFetcher alloc] init];
 [[SubstitutesController sharedSubstitutesController] setDataFetcher: dataFetcher];
 [dataFetcher release];

    [window addSubview:viewController.view];
    [window makeKeyAndVisible];
 
 if ([launchOptions objectForKey: UIApplicationLaunchOptionsRemoteNotificationKey]) {
  [[PushNotificationManager sharedPushNotificationManager] handleNotificationWithuserInfo: [launchOptions objectForKey: UIApplicationLaunchOptionsRemoteNotificationKey]];
 }
 
 [window setBackgroundColor: [UIColor viewFlipsideBackgroundColor]];

 [Appirater appLaunched: YES];

    return YES;
}

 

Revise this Paste

Parent: 31081
Your Name: Code Language: