iphone - UILocalNotification custom sound -


i have been searching solution hours.. absolutely 0 luck.

i set local notification:

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

notice sound name...

i tried put 10 sounds (aiff, wav, caf...etc), notification pops default sound :/

i have "fireburn.caf" file in resources folder.

why not playing sound?????

thanks.

answer:

nothing wrong code..

it's stupid iphone didn't cancel old notifications made default sound -_-;

when cleaned project, deleted app phone , rebooted phone worked..

hope finds helpful.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -