Wednesday, March 13, 2013

Save Image to document directory with timestamp ..ios


NSTimeInterval timeStamp = [[NSDate date] timeIntervalSince1970];
     NSNumber *timeStampObj = [NSNumber numberWithDouble: timeStamp];
    
    NSString  *imagePath = [NSHomeDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"Documents/capturedImage%@.jpg",timeStampObj]];

No comments:

Post a Comment