0
날짜 선택 도구를 통해 화재 날짜/시간에 알림을 설정할 수 있습니다. 이런 일이 발생했을 때 메소드를 실행하고 싶습니다. 통지 할 때이 작업을 수행 할 수있는 방법이 있습니까?알림 방법 IOS xcode 5
다음은 (경우에 당신이 미래에 다른 지역 알림을 사용합니다) 알림이 그룹을 식별하는 몇 가지 정보를 설정하려면해야 처음에 내 코드
-(void)scheduleLocalNotificationWithDate:(NSDate *)fireDate{
UILocalNotification *notification = [[UILocalNotification alloc]init];
notification.fireDate = fireDate;
notification.alertBody = @"time hit";
notification.soundName = @"alarmSoundFile.mp3";
[[UIApplication sharedApplication]scheduleLocalNotification:notification];
}