Som personalizado UILocalNotification
Eu tenho procurado por uma solução por horas .. com absolutamente zero sorte.
Eu configurei uma notificação local:
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";
Observe o nome do som ...
Tentei colocar 10 sons (aiff, wav, caf ... etc), mas a notificação aparece com o som padrão: /
Eu tenho o arquivo "fireburn.caf" na pasta Recursos.
Por que não está tocando meu som ?????
Obrigado.