<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreLocation",
  "identifier" : "/documentation/CoreLocation/CLBeaconIdentityCondition/initWithUUID:major:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Location"
    ],
    "preciseIdentifier" : "c:objc(cs)CLBeaconIdentityCondition(im)initWithUUID:major:"
  },
  "title" : "initWithUUID:major:"
}
-->

# initWithUUID:major:

Creates a new beacon identity condition with the identifier and major value you specify.

```
- (instancetype) initWithUUID:(NSUUID *) uuid major:(CLBeaconMajorValue) major;
```

## Parameters

`uuid`

A [`UUID`](/documentation/CoreLocation/CLBeaconIdentityCondition/UUID) to use as the beacon’s identifier.

`major`

A [`CLBeaconMajorValue`](/documentation/CoreLocation/CLBeaconMajorValue) to use as the beacon’s major value.

---

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)