Instance Property

shouldMoveFile

A Boolean value that determines whether Photos moves or duplicates files when creating an asset resource.

Declaration

@property(nonatomic, assign) BOOL shouldMoveFile;

Discussion

This property applies only when creating an asset resource with the addResourceWithType:fileURL:options: method. If this value is YES, Photos moves the specified file into the Photos library to create the asset resource, removing the original file after the asset has been successfully created. When using this option, Photos does not make an intermediary copy of the resource data, so no additional storage space is required.

If this value is NO (the default), Photos copies the contents of the original file into the Photos library.