我正在尝试将库集成到我的ios应用程序中。该库中有从NSBundle检索文件
// Serve files from the standard Sites folder
NSString *docRoot = [[[NSBundle mainBundle] pathForResource:@"index" ofType:@"html" inDirectory:@"web"] stringByDeletingLastPathComponent];
这样的事情现在我相信这个座落在目录网页的index.html
。我确实有一个带有index.html的web文件夹。不过,我不确定ios应用程序在哪里查找文件夹网页。有什么建议么 ?
我把web文件夹放在'.xcodeproj'文件的旁边。然而它仍然没有被拾起 – Rajeshwar
您是否使用将文件添加到将文件夹添加到项目中? –
romsearcher
通过使用上述方法添加文件夹,文件夹将位于您的文件夹内,而不是位于.xcodeproj旁边。 –
romsearcher