2012-03-02 3 views
2

내가 폰갭과 IOS 응용 프로그램을 개발하고 금요일마다에 반복 할 것이다 그것을 위해 지역 알림을 설정해야하고 등록하고 지정된 시간지역 알림

또한 사용자가 로컬 수신 여부를 결정합니다 요구 사항이 통지

답변

3

난 당신이 내가 매우 도움이되었다고 주제에 대한 다음 문서를 참조하는 것이 좋습니다

http://useyourloaf.com/blog/2010/7/31/adding-local-notifications-with-ios-4.html

- (void)scheduleNotification { 

    [[UIApplication sharedApplication] cancelAllLocalNotifications]; 

     UILocalNotification *notif = [[UILocalNotification alloc] init]; 
     notif.fireDate = [datePicker date]; 
     notif.timeZone = [NSTimeZone defaultTimeZone]; 

     notif.alertBody = @"Body"; 
     notif.alertAction = @"AlertButtonCaption"; 
     notif.soundName = UILocalNotificationDefaultSoundName; 
     notif.applicationIconBadgeNumber = 1; 

     [[UIApplication sharedApplication] scheduleLocalNotification:notif]; 
     [notif release]; 
    } 
} 
,

이것은 어떻게 작동하는지에 대한 기본적인 개요 일 뿐이며, 여기에서 시작하여 알림을 예약 할 수 있어야합니다.

+1

알림을 예약 할 수 있지만 모든 금요일에 대해 반복하는 방법과 로컬 알림을 보내기 전에 사용자 등록을 활성화하는 방법 – user1244533

+1

WTF 이전에는 아무 것도하지 않았습니다. –