다른 repeatIntervals를 사용하여 여러 개의 UILocalNotifications를 만들고 있습니다.iPhone UILocalNotification 값
모든 반복 간격은
내가 디버깅하고myNotification.repeatInterval = NSWeekdayCalendarUnit;
처럼 NSCalendarUnit를 사용하여 지정됩니다. 내가
나는이로 인쇄 알림 참조NSArray* oldNotifications = [app scheduledLocalNotifications];
NSLog(@"alarms = %@", oldNotifications);
사용하여 알림을 포함하는 NSArray를 인쇄 할 때 :
"{화재 날짜 = 2011-09-19 6시 26분 0초 0000을, 시간대 = 유럽/리스본 (WEST)는 오프셋 3600 (일광), "} = 간격 = 512, 다음 화재 날짜
되지 않음을 2011-09-19 6시 26분 0초 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