简体   繁体   中英

Searching both document directory and main bundle

A uitableview (aqgridview) must display a title string based on the name of the document at a certain position in the grid. The name obviously corresponds to the name of the file in either directory. But my problem is that I defined a static NSString of 4 documents in my bundle, and I can easily get their titles. But I want to get the names of the files contained in both my app bundle and of the documents directory. When I load my app with something from the documents directory, it just keeps repeating the 4 static string titles. Code available on request.

结合使用NSDirectoryEnumeratorNSFileManager方法enumeratorAtPath可以从资源和doc目录中获取文件列表。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM