xcode - Objective-C pathForResource doesn't find file, returns null -
the code i'm using below doesn't seem find file want, can help?
nsstring *path = [[nsbundle mainbundle] pathforresource:@"itunes music library" oftype:@".xml" indirectory:@"~/music/itunes/"]; nslog(@"%@", path);
thanks, sami.
this looking inside bundle, /applications/my app.app/contents/resources/~/music/itunes
(if "~" there legal). you're not looking bundle resource here. why making call find path of file know path to?
Comments
Post a Comment