Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chhoda

macrumors 6502
Original poster
Oct 25, 2008
285
1
Hi All,

I am using this code

NSString *sndFilePath = [[NSBundle mainBundle] pathForResource:mad:"test" ofType:mad:"mp3"];

for playing sound.

and
UIImage *img = [UIImage imageNamed:mad:"test.png"];

these work god in simulator

when i run on device, it does not find the file ! why ?

my image files are in resources/images section in xcode and sounds are in resources/sound/ group

--CH
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.