Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // DMB_Live_SetlistAppDelegate.m
- // DMB Live Setlist
- //
- // Created by Matt Yette on 1/25/10.
- // Copyright __MyCompanyName__ 2010. All rights reserved.
- //
- #import "DMB_Live_SetlistAppDelegate.h"
- #import "DMB_Live_SetlistViewController.h"
- @implementation DMB_Live_SetlistAppDelegate
- @synthesize window;
- @synthesize viewController;
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
- [application registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |
- UIRemoteNotificationTypeSound |
- UIRemoteNotificationTypeAlert)];
- // Override point for customization after application launch
- [window addSubview:viewController.view];
- [window makeKeyAndVisible];
- return YES;
- }
- // Delegation methods
- - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken {
- NSLog(@"success");
- }
- - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)err {
- NSLog(@"Error in registration. Error: %@", err);
- }
- - (void)dealloc {
- [viewController release];
- [window release];
- [super dealloc];
- }
- @end
Add Comment
Please, Sign In to add comment