Iphone UILocalNotification在启动应用程序时崩溃

Iphone UILocalNotification在启动应用程序时崩溃,iphone,ios6,crash,uilocalnotification,Iphone,Ios6,Crash,Uilocalnotification,我可以在我的应用程序中启用UILocalNotification,我的操作如下: 在myUIViewController中 if(_endDate){ UILocalNotification *localNotif = [[UILocalNotification alloc] init]; if (localNotif == nil) return; localNotif.fireDate = _endDate;

我可以在我的应用程序中启用
UILocalNotification
,我的操作如下:

在my
UIViewController中

if(_endDate){    
        UILocalNotification *localNotif = [[UILocalNotification alloc] init];
        if (localNotif == nil)
            return;
        localNotif.fireDate = _endDate;
        localNotif.timeZone = [NSTimeZone defaultTimeZone];

        localNotif.alertBody = @"go";
        localNotif.soundName = UILocalNotificationDefaultSoundName;
        localNotif.applicationIconBadgeNumber = 1;

        [[UIApplication sharedApplication] scheduleLocalNotification:localNotif];
    }
Appdelegate
中:

-(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification{
    application.applicationIconBadgeNumber = 0;
}
当通知出现时,我启动应用程序,正确输入代理,但之后,应用程序崩溃

我在IO6工作


您能帮我吗?

对于精制creash,您可以为profile项目执行以下步骤,如:-

在Xcode-->产品-->中选择配置文件

等到项目在指令僵尸中运行。按配置文件,您发现模拟器正常运行。当您的应用程序停止运行时,您只需选择控制台,如:-


您找到了带有变量hope的崩溃日志,希望您找到了它

崩溃消息是什么?粘贴日志…在哪一行,它崩溃了?崩溃日志是什么?没有消息,有无限多个断点(EXC_BAD_ACCESS)返回;[[UIApplication sharedApplication]scheduleLocalNotification:localNotif]之后;或者也可以检查一下,在重新分配解决方案后,您没有释放任何可以在方法中使用的变量。此主题为:[iOS应用程序在恢复时崩溃][1][1]:对于zombie,我有一条消息“[UITextField\u applicationResuming:]:message sent to deallocated instance 0x24a22d00”确定我的第一条消息,现在您只需要访问此消息:)