Kas*_*spa 5 iphone objective-c ios uilocalnotification ios5
仅仅是我还是苹果打破了iOS5中的UILocalNotification机制(GM +公开发布)?它似乎在测试版中工作正常但是由于GM只播放声音,所以没有显示警报(是的,我已经检查了通知设置,应用程序全部打开).
我还做了一个小的单独项目(带有一个全新的应用程序标识符,只是为了安全起见),并使用一些非常简单的代码测试UILocalNotification类,顺序为:
UILocalNotification *singleLocalPush = [[UILocalNotification alloc] init];
singleLocalPush.fireDate = [NSDate dateWithTimeIntervalSinceNow:15];
singleLocalPush.hasAction = YES;
singleLocalPush.alertBody = @"Alert Body";
singleLocalPush.alertAction = @"Alert Action";
[[UIApplication sharedApplication] scheduleLocalNotification:singleLocalPush];
Run Code Online (Sandbox Code Playgroud)
有人遇到类似问题吗?如果您的应用程序是关于本地通知:)这非常烦人:)
最好的,Kacper