阅读背景:

iPhone iOS:本地通知未出现

来源:互联网 

I'm writing an app that sends the user an alert through the Notification Center when an event date is approaching. But when I set the date in the date picker and close the app, the notification doesn't appear. I already enabled Push Notifications in my provisioning profiles. It may be because of my objectForKey area. I have 2 nibs (one for iPhone, one for iPad) named ImportantDatesViewController_iPhone1 and ImportantDatesViewController_iPad1. Should I change the objectForKey area to the nib name instead of just "ImportantDatesViewController"? And my .h and .m file names are simply ImportantDatesViewController also. Sorry, I'm still very new at this and learning as I go. Here is all the code in my project that deals with the notification center, this is what I put in my view controller:I'm writing an app that sends the user an alert




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: