UILocalNotification custom sound

Habe ich die Suche nach einer Lösung für Stunden.. mit absolut null Glück.

Ich eine Lokale Benachrichtigung:

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";

Hinweis auf den Namen des sounds...

Habe ich 10 sounds (aiff, wav, caf,...etc), aber die Benachrichtigung öffnet sich nur mit dem Standard-sound :/

Habe ich die "fireburn.caf" Datei in den Ordner Ressourcen.

Warum wird es nicht spielen, mein sound?????

Dank.

InformationsquelleAutor Mazyod | 2010-11-15
Schreibe einen Kommentar