pathForResource in subdirectory of directory

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

  1. moonman239 macrumors 68000

    Mar 27, 2009
    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

    [[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

    Aug 9, 2009

Share This Page