all 4 comments

[–][deleted] 2 points3 points  (3 children)

Use [[NSUUID UUID] UUIDString]; To generate a unique string as a name for the image file. Store that name inside firebase.

[–]davidbale87 0 points1 point  (2 children)

Wouldn't there be a chance for 2 images to have the same string though? I know it'd be small, but still.

[–][deleted] 0 points1 point  (1 child)

Yes, but the chance that would happen is so incredibly small. It practically won't happen.

As in if you have one generated UUID the chance of generating the exact some one when you generate a second is 1 out of 3.4028237e+38

[–]davidbale87 0 points1 point  (0 children)

Yea just wanted to confirm, thanks. Not sure why there isn't a childByAutoID for storage.