pathForResource in subdirectory of directory

Discussion in 'iOS Programming' started by moonman239, Feb 11, 2016.

  1. moonman239 macrumors 68000

    Joined:
    Mar 27, 2009
    #1
    I have a bunch of images in a directory called "buttons", which is in a directory called "pictures" and I'm not sure how to access it within my code.I know I can use

    Code:
    [[NSBundle mainBundle ] pathForResource:ofType:@"png" subdirectory:@"pictures"]
    
    for images in "pictures", but I'm not sure how to access a file in "buttons".
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009

Share This Page