I\'m trying to create unique file names by renaming them using their hashed value in iOS. How can I do that?
Why don't you simply generate unique identifiers and use it? like
CFUUIDRef uuidObj = CFUUIDCreate(nil); NSString *uniqueId = (NSString*)CFUUIDCreateString(nil, uuidObj); CFRelease(uuidObj); NSLog(@"%@",uniqueId); [uniqueId autorelease];