Instance Method

initWithIdentifier:

Sets the identifier for a media item.

Declaration

- (instancetype)initWithIdentifier:(NSString *)identifier;

Parameters

identifier

A unique identifier for the content item.

Return Value

The created MPContentItem object.

Discussion

Each media item identifier must be unique. The use of nonunique identifiers can prevent media items from updating properly. Create a new identifier when creating an MPContentItem object.