Contents

responds(to:)

Returns a Boolean value that indicates whether the receiving class responds to a given selector.

Declaration

class func responds(to aSelector: Selector) -> Bool

Parameters

  • aSelector:

    A selector.

Return Value

true if the receiving class responds to aSelector messages, otherwise false.