开发者

error lauchoptions undeclared IOS4?

开发者 https://www.devze.com 2023-01-10 12:37 出处:网络
application开发者_如何学运维.applicationIconBadgeNumber = 0; // Handle launching from a notification

application开发者_如何学运维.applicationIconBadgeNumber = 0;

// Handle launching from a notification
UILocalNotification *localNotif =[launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];

if (localNotif) {
    NSLog(@"Recieved Notification %@",localNotif);
}

return YES;

i am getting lauchoptions undeclared my os veriosn is 4 and xcode i 3.2.3


Well, where are you getting the variable "launchOptions" from? Presumably, you're using

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

Did you rename the argument? Perhaps you need to show more of your code...

0

精彩评论

暂无评论...
验证码 换一张
取 消