---
title: "initWithUUID:major:minor:"
framework: corelocation
role: symbol
role_heading: Instance Method
path: "corelocation/clbeaconidentitycondition/initwithuuid:major:minor:"
---

# initWithUUID:major:minor:

Creates a new beacon identity condition with the identifier, and major and minor values you specify.

## Declaration

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

## Parameters

- `uuid`: A doc://com.apple.corelocation/documentation/CoreLocation/CLBeaconIdentityCondition/UUID to use as the beacon’s identifier.
- `major`: A doc://com.apple.corelocation/documentation/CoreLocation/CLBeaconMajorValue to use as the beacon’s major value.
- `minor`: A doc://com.apple.corelocation/documentation/CoreLocation/CLBeaconMinorValue to use as the beacon’s minor value.

## See Also

### Creating beacon identity conditions

- [initWithUUID:](corelocation/clbeaconidentitycondition/initwithuuid:.md)
- [initWithUUID:major:](corelocation/clbeaconidentitycondition/initwithuuid:major:.md)
