0
알림 센터의 컨텐츠에서 변수 설정에 문제가 있습니다. 내 코드입니다알림 센터 (OS X) - 제목으로 변수
NSUserNotification *notification = [[NSUserNotification alloc] init];
[notification setTitle:@"version of app"];
[notification setInformativeText:@"message"];
// Delay of pop-up notification
[notification setDeliveryDate:[NSDate dateWithTimeInterval:0 sinceDate:[NSDate date]]];
// Sound of notification
//[notification setSoundName:NSUserNotificationDefaultSoundName];
NSUserNotificationCenter *center = [NSUserNotificationCenter defaultUserNotificationCenter];
[center scheduleNotification:notification];
알림 내용에 CFBundleVersion을 어떻게 추가 할 수 있습니까?
:
그럼 그냥 제목과 같은 제목의 변수를 설정하십시오. 정말 고맙습니다! – mrfox