2011-11-09 3 views
0

알림 메시지에 사운드를 추가하지만, 재생되지 않습니다. iphone이 알림 사운드를 재생하지 않습니다.

나는이 시도 :

notif.soundName = UILocalNotificationDefaultSoundName; 

notif.soundName = @"sound.caf"; 

도움을?

+0

테스트 폰이 자동 모드입니까? –

+0

어떻게 사운드를 만들었습니까? 얼마나 걸리나요? 'afinfo sound.caf'의 결과는 무엇입니까? – Mats

답변

0

전체 코드 (소리 만)가 이렇게 보입니까?

UILocalNotification *notif = [[UILocalNotification alloc] init]; 
notif.firedate = //Whenever 
notif.soundName = UILocalNotificationDefaultSoundName; 
[[UIApplication sharedApplication] scheduleLocalNotification:notif]; 

코드가 체크 아웃되면 iPhone에 문제가 있어야합니다. 시뮬레이터에서 작동합니까?

관련 문제