files in device !

Discussion in 'iPhone/iPad Programming' started by chhoda, Apr 12, 2009.

  1. macrumors 6502

    Joined:
    Oct 25, 2008
    #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
     

Share This Page