私はLocalNotificationアプリを作っていると私はこのような、テーブルビューをパブとき、すべては、しかし、dateComponentsためfireDateを設定した後、正常に動作している:UILocalNotification fireDate Q
NSArray *reminderArray = [[UIApplication sharedApplication] scheduledLocalNotifications];
UILocalNotification *notif = [reminderArray objectAtIndex:indexPath.row];
[cell.textLabel setText:notif.alertBody];
[cell.detailTextLabel setText:[notif.fireDate description ]];
detailtextlabelは1時間です早く時間が選んだ、私は問題を見つけることができません、適切なタイミングでアラームが発生します。
はSkovの
タイムゾーンは何ですか?また、 '[notif.fireDate description]'の出力を投稿できますか? –
NSDate * pickerDate = [NSDate date]; [self.datePicker setTimeZone:[NSTimeZone defaultTimeZone]]; [self.datePicker setDate:pickerDate]; – Skovie
とthh notif.fireDateの説明は私に2011-01-16 22:18を与えていますが、選んだ時間は23:18です – Skovie