files in device !

Discussion in 'iOS Programming' started by chhoda, Apr 12, 2009.

  1. chhoda macrumors 6502

    Oct 25, 2008
    Hi All,

    I am using this code

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

    for playing sound.

    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


Share This Page