传输至相机罗尔 - 这里有一个link,应该帮助。
,看看有什么在你的文档目录,这里的代码片段:
-(void) dump {
NSString *docsDir = [NSHomeDirectory() stringByAppendingPathComponent: @"Documents"];
NSFileManager *localFileManager = [NSFileManager defaultManager];
NSDirectoryEnumerator *dirEnum =
[localFileManager enumeratorAtPath:docsDir];
NSError *error=nil;
NSLog(@" Documents Directory: %@", docsDir);
NSString *file;
while (file = [dirEnum nextObject]) {
NSString *fullPath = [NSString stringWithFormat:@"%@/%@", docsDir,file];
NSDictionary *attrs = [localFileManager attributesOfItemAtPath:fullPath error:&error];
if (error) {
NSLog(@" error - %@", error);
} else {
//NSLog(@" file : %@", file);
NSInteger fsiz = [attrs fileSize];
NSString *ftyp = [attrs fileType];
NSDate *fmod = [attrs fileModificationDate];
NSLog(@" %9d : %@ : %@ : %@", fsiz, file, ftyp, fmod);
}
}
NSLog(@" ====== End Documents Directory ========");
}
TNX恩你,特别是对于片段 - 这将是更有益的 - 在链接它是关于图像没有视频,[但确实现在我有UISaveVideoAtPathToSavedPhotosAlbum - 如果它的工作,这是我需要:)] – 2011-04-20 15:02:52
(由于引用nabokov,我是('我是')'高级'nabokov学者) – 2011-04-20 17:41:38
我几乎不知道关于纳博科夫,除了报价,这对我来说很有意义。 – Rayfleck 2011-04-20 18:07:27