使用本地文件填充表视图

时间:2010-10-04 10:29:22

标签: objective-c uitableview nsfilemanager

如何使用本地文件填充表视图。 我需要使用什么如果我结合使用NSFileManager和UITableView会有可能吗?

1 个答案:

答案 0 :(得分:0)

使用NSFileManager的directoryContentAtPath获取给定路径中所有文件和目录的列表。 directoryContentAtPath返回NSArray,使用相同的方法填充表。