私は、異なるrepeatIntervalsでいくつかのUILocalNotificationsを作成しています。iPhone UILocalNotificationの値
すべての繰り返し間隔は
myNotification.repeatInterval = NSWeekdayCalendarUnit;
のように私がデバッグ午前、NSCalendarUnitを使用して割り当てられます。私は
NSArray* oldNotifications = [app scheduledLocalNotifications];
NSLog(@"alarms = %@", oldNotifications);
を使用して通知を含むNSArrayのを印刷するとき、私は通知が、このように印刷された参照:
「{火災日= 2011-09-19 6時26分00秒+0000、タイムゾーン=ヨーロッパ/リスボン(WEST)3600 (夏時間)、繰り返し間隔= 512、次の発射日= 2011年9月19日6時26分00秒 0000}」
を未オフセットこの例では512であるが、繰り返し間隔は数字であるが、256、0、何でもよい。
ここで、NSCalendarUnitと同じ番号の同等性を確認できますか。私は彼らが何であるかを知る必要があるので、私はデバッグすることができます。 Xcodeの "Jump to definition"には数字が表示されません。
おかげ
... [参照](http://developer.apple.com/library/ios/documentation/CoreFoundation/Reference/CFCalendarRef/Reference/reference.html#//apple_ref/doc/uid/TP40001434- CH1g-C007681)。 – albertamg
参照は整数値を与えません。 – SpaceDog
参考文献の抜粋: 'kCFCalendarUnitWeekday =(1 << 9)' – albertamg