<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/objc_lookUpClass(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Objective-C Runtime"
    ],
    "preciseIdentifier" : "c:@F@objc_lookUpClass"
  },
  "title" : "objc_lookUpClass(_:)"
}
-->

# objc_lookUpClass(_:)

Returns the class definition of a specified class.

```
func objc_lookUpClass(_ name: UnsafePointer<CChar>) -> AnyClass?
```

## Parameters

`name`

The name of the class to look up.

## Return Value

The Class object for the named class, or `nil` if the class is not registered with the Objective-C runtime.

## Discussion

The implementation of this function is identical to the implementation of the  [`objc_getClass(_:)`](/documentation/ObjectiveC/objc_getClass(_:)) function.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)