2016-12-26 1 views

답변

0

특정 타이머 간격으로 전화를 걸거나 먼저 통화 한 다음에는 로컬 알림 이후에 repeatInterval 속성이 있고 값은 NSCalendarUnit이어야합니다. 그리고 특정 타이머로 반복하십시오.

그렇지 않으면 두 번째 옵션은 블록에서 가져 오기 알림

모든 지역 알림을 제거해야한다 화재 날짜 새로 만들 수 있습니다 때 항상

-(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification{ 
    // I recieved a notification 
} 

를 호출 대리자 메서드 아래

localNotification.fireDate = [NSDate date]; 
0

확인해보십시오.

[[UIApplicatio n sharedApplication] scheduledLocalNotifications]

예약 된 알림 배열을 반환합니다.

배열 또는 NSLog 배열 수를 확인하고 로컬 알림이 취소 된 경우 세부 정보를 얻을 수 있습니다.

+0

알림은 이미 표시되었습니다. scheduledLocalNotifications는 대기중인 목록의 알림을 반환합니다. 내 사건이 아니야. –

2

당신은 UILocalNotification cancelLocalNotification: 를 호출 한 후 조금 기다렸다가이

[[UIApplication sharedApplication] cancelLocalNotification:someNotification]; 
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{ 
/* register UILocalNotification again here after delay */ 

})와 같은 새로운 UILocalNotification

뭔가 다시 등록 할 수 있습니다;

관련 문제