View Full Version : files in device !

Apr 12, 2009, 03:05 PM
Hi All,

I am using this code

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

for playing sound.

UIImage *img = [UIImage imageNamed:@"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