hallo,
i have found some iphone-camera-video-saving avfoundation code examples over the net (and also im tryin to write my own code but not finished it yet)
su
Transfer to Camera Roll - here's a link that should help.
To see what's in your Documents directory, here's a code snippet:
-(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 ========");
}