通知未显示/未在Simulator中安排,但在设备中正常工作Simulator 4.3上有问题吗? [英] notifications doesn't show/ doesn't scheduled in Simulator but works in device Problem on Simulator 4.3?

查看:79
本文介绍了通知未显示/未在Simulator中安排,但在设备中正常工作Simulator 4.3上有问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了提醒应用程序.

I have Implemented a reminder application.

[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
    int count = [[[UIApplication sharedApplication] scheduledLocalNotifications] count];  
    NSLog(@"count is %d",count);

一切都很好,当计划的时间到了时,会发出通知警报.

All are works fine notification alert raises when it's scheduled time arives.

突然之间今天没有显示通知.而且他们没有安排

即使我设置了通知,通知计数也保持不变

notifications count also remains same even i set the notification,

但是 当我退出设备中的应用程序时,它运行良好,通知计数增加,通知警报显示良好

But when i exicuted the application in my device, it works perfectly, notificaton count increases, Notification alert raises perfectly

但不能在模拟器中使用...

But not work in simulator...

为什么通知不能在模拟器上使用..?

我用过 Xcode 4.1

iPhone 4.3 simulator

会发生什么?

推荐答案

Trash your /Users/{Your name}/Library/Application Support/iPhone Simulator/ directory and rebuild the projects you are having trouble with.

通过关注问题解决了:iPhone:iOS 4.3 SDK模拟器卡住并崩溃:

谢谢你@基比·托德...

Thank u @Kiby Todd...

请确保我们放入 iPhone模拟器 中存在的 用户" 文件夹的副本/strong>文件夹

Make Sure we put a copy of "User's" folder existed in iPhone Simulator folder

用户文件夹重新粘贴到 iPhone模拟器

Re paste User Folder in iPhone Simulator

这篇关于通知未显示/未在Simulator中安排,但在设备中正常工作Simulator 4.3上有问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆