이것은 내가 가지고있는 코드이며 응용 프로그램 배지에 날짜를 넣습니다. 나는이 번호를 다시로드하는 애플 리케이션을 입력하지 않고 매일이 번호를 다시로드하는 방법을 궁금 해서요. 미리 감사드립니다!하루에 한 번 응용 프로그램 배지 업데이트
NSDate *today = [NSDate date];
NSCalendar *cal = [NSCalendar currentCalendar];
NSDateComponents *comp = [cal components:NSDayCalendarUnit fromDate:today];
NSInteger day = [comp day];
[UIApplication sharedApplication].applicationIconBadgeNumber = day;
알림을 푸시 할 수 있습니다 ... –
예 - 푸시 알림 - 여기에 관련 게시물이 있습니다. http://stackoverflow.com/questions/11153631/increment-the-push-notification-badge-iphone – bryanmac