Instance Method インスタンスメソッド

insertValue(_:at:inPropertyWithKey:)

Inserts an object at the specified index in the collection specified by the passed key.

Declaration 宣言

func insertValue(_ value: Any, 
              at index: Int, 
inPropertyWithKey key: String)

Discussion 解説

The method insertIn<Key>:atIndex: is invoked if it exists. If no corresponding scripting-KVC-compliant method (insertIn<Key>:atIndex: ) is found, this method invokes mutableArrayValueForKey: and mutates the result.

See Also 参照

Indexed access