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.
documentsアプリケーションのフォルダにあるすべてのファイル名を取得して、に配置したいと思いますNSMutableArray。それ以上でもそれ以下でもありません。
documents
NSMutableArray
には便利な方法がありますNSFileManager。
NSFileManager
NSFileManager *fileManager = [[NSFileManager alloc] init]; NSArray *files = [fileManager contentsOfDirectoryAtPath:documentsDirectory error:nil]; ... [fileManager release];
ARC の時点では、もちろんリリース ステートメントを削除できます。