문자열에 오디오 파일을 저장하는 코드는 다음과 같습니다. 그 후에 배열에 추가합니다. 그러나 여전히 여기에서 작동하지 않습니다. documentdictionary를 저장 한 후에 배열에 오디오 파일을 저장하는 옵션이 있습니까?녹음 된 파일을 배열에 저장하는 방법은 무엇입니까?
fileArray = [[NSMutableArray alloc] initWithContentsOfURL:recordedTmpFile];
fileArray = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [fileArray objectAtIndex:0];
NSMutableDictionary *recordDictionary = [NSDictionary dictionaryWithContentsOfFile:documentsDirectory];
NSFileManager *fileManager = [NSFileManager defaultManager];
for(int i= 0; i<fileArray.count;i++)
{
NSString *recorded = [fileArray objectAtIndex:i];
NSString *filePath = [recordDictionary stringByAppendingPathComponent:recorded];
newArray = [fileManager fileExistsAtPath:filePath];
}
나에게서 누락 된 코드가 있다면 나에게 몇 가지 구체적인 생각을 제안하십시오. Plz 응답을 좀주세요.
브라보! 좋은 쇼 선생님! – Jasarien