objective c - Accessing a file in a subproject of xcode -


i have phonegap application has added cocoa touch static library project sub project. need access xml file embedded library project.

nsstring *configxmlfilepath=[[nsbundle mainbundle]pathforresource:@"configurationfile" oftype:@"xml"];  nsstring *xmlcontent=[[nsstring alloc]initwithcontentsoffile:configxmlfilepath encoding:nsutf8stringencoding error:nil];  

that's how access file in project usually. since sub project, can't access path this.does know how this?

you should able drag file in question subproject in project navigator "copy resources" build phase in master xcode project. let me know if you'd me explain in detail.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -