Instance Method

initWithItems:

Initializes a dynamic item behavior with an array of dynamic items.

Declaration

- (instancetype)initWithItems:(NSArray<id<UIDynamicItem>> *)items;

Parameters

items

The dynamic items that you want to be subject to the dynamic item behavior.

Return Value

The initialized dynamic item behavior, or nil if there was a problem initializing the object.

Discussion

See Also

Initializing and Managing a Dynamic Item Behavior

- addItem:

Adds a dynamic item to the dynamic item behavior’s item array.

- removeItem:

Removes a specific dynamic item from the dynamic item behavior.

items

Returns the set of dynamic items you’ve added to the dynamic item behavior.