Instance Method


A hint to the system of the relative order for purging tagged sets of resources in the bundle.


- (void)setPreservationPriority:(double)priority forTags:(NSSet<NSString *> *)tags;



A number specifying the relative priority of preserving the resources in the group specified by tag.

Possible values are between 0.0 and 1.0. The default is 0.0. The system will attempt to purge resources with lower priorities first.


A set set of tag names specifying resources stored in the bundle. Must not be nil. An exception is thrown if any of the tags in the set do not exist in your app.

See Also

Managing Preservation Priority for On Demand Resources

- preservationPriorityForTag:

Returns the current preservation priority for the specified tag.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software