알람 목적으로 UILocalNotification
을 사용하고 있습니다. 평일 (일, 월, 화, 수, 목, 금, 토) 기반의 반복에 대한 사용자 정의 옵션이 있습니다. 많은 응용 프로그램이이 과정을 수행했습니다. 나는 나의 최고 수준을 시험해 보았다. 그러나 나는 그것을 작동시킬 수 없다. 너희들이 날 도와 줘 ....맞춤 알람 (태양, 월, 화, 수, 목, 금, 토)에 대한 UILocalNotification 반복 간격
11
A
답변
24
UILocalNotification으로 사용자 지정 반복 간격을 설정할 수 없습니다. 이것은 (아래 참조) 전에 요구되었지만 제한된 옵션 만 제공됩니다. repeatInterval parameter은 열거 형이며 specific values으로 제한됩니다.
이러한 열거 형을 곱하여 그 간격의 배수를 얻을 수 없습니다. 앱에 64 개 이상의 로컬 알림을 설정할 수 없습니다. 알림이 실행될 때 사용자가 앱을 실행하기로 선택하지 않는 한 알림이 실행되면 알림을 다시 예약 할 수 없습니다 (알림이 실행되지 않을 수도 있음).
반복 간격 배수에 대한 요청이 있습니다. posted here. 주석을 달 수 있습니다. 나는 애플에게 버그 리포트 나 기능 요청 (url?)을 제출할 것을 제안한다.
- How to set Local Notification repeat interval to custom time interval?
- Custom repeat interval for UILocalNotification
- Custom UILocalNotification repeat interval
- UILocalNotification Repeat
- non-fixed repeatInterval in UILocalNotification
- Can I have custom UILocalNotification repeat intervals (i.e. weekdays only?)
- Repeating UILocalNotifications with Gaps
- Repeat UILocalNotification on certain days of week
2
간단히 매개 변수 간격과 평일을 사용하여 메소드를 작성하십시오.
[self notificationWithItem:tempDict Date:[self SetDateForAlarmWithWeekday:2 :tempDict] andRepeatInterval:NSWeekCalendarUnit];
[self notificationWithItem:tempDict Date:[self SetDateForAlarmWithWeekday:3 :tempDict]andRepeatInterval:NSWeekCalendarUnit];
[self notificationWithItem:tempDict Date:[self SetDateForAlarmWithWeekday:4 :tempDict] andRepeatInterval:NSWeekCalendarUnit];
[self notificationWithItem:tempDict Date:[self SetDateForAlarmWithWeekday:5 :tempDict] andRepeatInterval:NSWeekCalendarUnit];
[self notificationWithItem:tempDict Date:[self SetDateForAlarmWithWeekday:6 :tempDict] andRepeatInterval:NSWeekCalendarUnit];
나는 평일을 통과 : 그리고 과 방법은 아래 내가 전화 한 separately.As 해결 될 수있다 유 평일에 대한 알림을 alarm.But 설정해야 할 때마다 기능 를 호출 다른 요일의 매개 변수는 월요일에 2, 화요일에 3 등입니다.
I hope it will help u...!
관련 문제
- 1. 사용자 지정 UILocalNotification 반복 간격
- 2. 알람 간격 받기
- 3. 로컬 알림 맞춤 시간 간격
- 4. iphone 앱의 반복 알람
- 5. 반복 알람/이벤트 예약
- 6. 두 div에 대한 세로 맞춤 및 간격
- 7. iPhone UILocalNotification 값
- 8. PHP MySQL 7 일, 매주, 월 - 금 달력이있는 페이지 매김?
- 9. UILocalNotification의 사용자 지정 반복 간격
- 10. 안드로이드에서 알람 관리자를 사용하여 요일에 반복 알람을받을 수 있습니까?
- 11. 장치에서 UILocalNotification 소리가 재생되지 않습니다.
- 12. Leitner 알고리즘 구현 방법 (간격 반복)?
- 13. UILocalNotification 과정
- 14. UILocalNotification repeatInterval
- 15. Zend_Search_Lucene의 성능 및 병목 목?
- 16. 개요에 대한 간격 채우기
- 17. uilocalnotification 문제
- 18. UILocalNotification 충돌
- 19. UILocalNotification 일정
- 20. 기본 시간대가 아닌 UILocalNotification
- 21. '태양 흑점 - 시작'작업을 어떻게 할 수 있습니까?
- 22. 평일마다 실행되는 알람 관리자를 사용하여 알람을 설정하는 방법
- 23. iOS3 용 UILocalNotification 대안
- 24. (태양) RPC auth_unix
- 25. 간격 검열 데이터에 대한 dinterval()?
- 26. 알람 시계를 설정할 수 있습니까?
- 27. UILocalNotification 취소 이벤트를받는 방법?
- 28. UILocalNotification 사용자 정보가 NSURL
- 29. 월간 일관성 반복 반복
- 30. 특정 UILocalNotification 취소
애플의 [문서] (https://developer.apple.com/library/ios/documentation/iphone/conceptual/iPhoneOSProgrammingGuide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html#//apple_ref/doc/uid/TP40007072 -CH4-SW5) **는 앱이 동시에 128 개의 로컬 알림을 예약 할 수 있다고 말합니다 ** : 귀하의 앱은 지정된 시간에 활성화 된 128 개 이하의 로컬 알림을 가질 수 있습니다. interval._ – nburk
@nburk 댓글에있는 링크가 더 이상 작동하지 않습니다. 당신이 말한 것이 여전히 정확한지 알게됩니까? – ndmeiri
iOS 10에는 사용자 정의 시간 간격 옵션 + (instancetype)을 가진 새로운 반복 알림 옵션이 있습니다. triggerWithTimeInterval : (NSTimeInterval) timeInterval repeats : (BOOL) repeats; –