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

mutableCopy()

Returns the object returned by mutableCopy(with:) where the zone is nil.

Declaration 宣言

func mutableCopy() -> Any

Return Value 戻り値

The object returned by the NSMutableCopying protocol method mutableCopy(with:), where the zone is nil.

Discussion 解説

This is a convenience method for classes that adopt the NSMutableCopying protocol. An exception is raised if there is no implementation for mutableCopy(with:).

See Also 参照

Creating, Copying, and Deallocating Objects オブジェクトの作成、複製、そして割り当て解除