次の手順を実行しました。1. xcodeプロジェクトを作成し、SupportingFiles内に「Images」という名前のフォルダーを作成しました。
4枚の画像をドラッグアンドドロップしました。次のコードを使用してこれらのファイルにアクセスしようとしました
NSString *pathString = [[NSBundle mainBundle] pathForResource:@"Images" ofType:nil]; NSArray *fileList = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:pathString error: nil]; NSLog(@"the fileList is %d",[fileList count]);
カウントは常に0です。今何をすればよいですか?その中にファイルがあり、imageviewsで使用することができます。
それで、私が犯している間違いは何ですか?