My app crashes when I do the following in the applicationDidFinishLaunching event in the app delegate:
_textures[mytex] = [[Texture2D alloc] initWithImage: [UIImage imageNamed:@"a.png"]];
However when I replace @"a.png"
with
@"/Users/MyUserName/Desktop/MyProjectFolder/a.png"
everything works fine. I've experimented with the relative path stuff for the a.png
resource... but none of it has worked. How can I fix this? I'd like to just say @"a.png"
for all the image resources (esp. since I did this in another app... where I was working directly with sample code).
So what is that magical setting?
Thanks!