Instance Method

isEqual(to:)

Returns a Boolean value that indicates whether the value object and another value object are equal.

Declaration

func isEqual(to value: NSValue) -> Bool

Parameters

aValue

The other value object with which to compare the value object.

Return Value

true if both value objects are equal; otherwise, false.

Discussion

The NSValue class compares the type and contents of each value object to determine equality.