Пользовательский звук UILocalNotification

Я часами искал решение ... без особого успеха.

Я установил локальное уведомление:

UILocalNotification *notif = [[cls alloc] init];

[dateComp setDay:j+1];
[dateComp setHour:[[time objectAtIndex:0] integerValue]+offset];
[dateComp setMinute:[[time objectAtIndex:1] integerValue]];

NSLog(@"Year: %i, Month: %i, Day: %i, Time:%i:%i\n",[dateComp year], [dateComp month], 
                    [dateComp day], [dateComp hour], [dateComp minute]);

notif.fireDate = [gregorian dateFromComponents:dateComp];
notif.timeZone = [NSTimeZone defaultTimeZone];

notif.alertBody = [names objectAtIndex: k];
notif.soundName = @"fireburn.caf";

Обратите внимание на название звука ...

Я попытался поставить 10 звуков (aiff, wav, caf ... и т. Д.), Но уведомление выскакивает со звуком по умолчанию: /

У меня есть файл fireburn.caf в папке Resources.

Почему не воспроизводится мой звук ?????

Спасибо.

8
задан Mazyod 16 November 2010 в 04:04
поделиться