Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个 XCAP 应用程序。在我的应用程序中,我正在开发一个 xml 文件。我的问题是这个 xml 文件,我想放置一个 url。任何人都可以帮助我吗?预先感谢
您可以将 xml 文件添加到您的应用程序资源中。
然后使用
NSString *path = [[NSBundle mainBundle] pathForResource:@"myXmlFile" ofType:@"xml"]; //here is ur URL NSURL *url = [NSURL URLWithString:path];