Я новичок в программировании iPhone.
Я бы хотел получить содержимое NSHomeDirectory в массив.
Я нашел этот код
NSError *error;
NSFileManager *fileMgr = [NSFileManager defaultManager];
// Point to Document directory
NSString *documentsDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"];
// Write out the contents of home directory to console
NSLog(@"Documents directory: %@", [fileMgr contentsOfDirectoryAtPath:documentsDirectory error:&error]);
cell.textLabel.text = [NSString stringWithFormat:@"%@", [fileMgr contentsOfDirectoryAtPath:documentsDirectory error:&error]];
Может кто-нибудь дать мне способ поместить файлы в nsmutablearray?!?
, пожалуйста, помогите мне