---
title: "class_respondsToMethod(_:_:)"
framework: Objective-C Runtime
role: symbol
role_heading: Function
platforms: [iOS 2.0+, iPadOS 2.0+, Mac Catalyst 2.0+, tvOS 9.0+, visionOS 1.0+, watchOS 1.0+]
path: "objectivec/class_respondstomethod(_:_:)"
---

# class_respondsToMethod(_:_:)

## Declaration

```swift
func class_respondsToMethod(_ cls: AnyClass?, _ sel: Selector) -> Bool
```

## See Also

### Functions

- [autoreleasepool(invoking:)](objectivec/autoreleasepool(invoking:).md)
- [class_lookupMethod(_:_:)](objectivec/class_lookupmethod(_:_:).md)
- [objc_addExceptionHandler(_:_:)](objectivec/objc_addexceptionhandler(_:_:).md)
- [objc_addLoadImageFunc(_:)](objectivec/objc_addloadimagefunc(_:).md)
- [objc_assertRegisteredThreadWithCollector()](objectivec/objc_assertregisteredthreadwithcollector().md)
- [objc_begin_catch(_:)](objectivec/objc_begin_catch(_:).md)
- [objc_clear_stack(_:)](objectivec/objc_clear_stack(_:).md)
- [objc_collect(_:)](objectivec/objc_collect(_:).md)
- [objc_collectableZone()](objectivec/objc_collectablezone().md)
- [objc_collecting_enabled()](objectivec/objc_collecting_enabled().md)
- [objc_collectingEnabled()](objectivec/objc_collectingenabled().md)
- [objc_end_catch()](objectivec/objc_end_catch().md)
- [objc_enumerateClasses(fromImage:matchingNamePrefix:conformingTo:subclassing:)](objectivec/objc_enumerateclasses(fromimage:matchingnameprefix:conformingto:subclassing:).md)
- [objc_exception_rethrow()](objectivec/objc_exception_rethrow().md)
- [objc_exception_throw(_:)](objectivec/objc_exception_throw(_:).md)
