Skip to content

Instantly share code, notes, and snippets.

@baphillips
Last active January 6, 2016 15:32
Show Gist options
  • Save baphillips/6736925 to your computer and use it in GitHub Desktop.
Save baphillips/6736925 to your computer and use it in GitHub Desktop.
In iOS 7 NSBundle pathForResource:ofType:inDirectory: continued to return nil. It is believed that this is a bug in the SDK. Here is what I used in the meantime.
NSString *bundlePath = [[NSBundle mainBundle] bundlePath];
NSString *filePath = [bundlePath stringByAppendingPathComponent:@"image.png"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment