samedi 29 novembre 2014

iOS 8 sound for app doesn't work like it did in iOS 7

I developed my game app in Xcode 5.1.1. Yesterday i downloaded Xcode 6.1.1. in Xcode 6.1.1 when i upload any of the iOS 8.1 simulators the sound doesn't work. However, sound works perfectly fine for all iOS 7 simulators. I'm using AudioToolbox.framework for my .aiff sounds. Is there a coding difference between iOS 7 and iOS 8 apps? Or is it something else?


in my ViewDidLoad, code for sound...



NSURL *SwishURL =[NSURL fileURLWithPath:[[NSBundle mainBundle]pathForResource:@"SwishSound" ofType:@"aiff"]];
AudioServicesCreateSystemSoundID((__bridge CFURLRef)SwishURL, &SwishID);



Aucun commentaire:

Enregistrer un commentaire