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.

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