Instance Method

initWithRecordName:

Initializes and returns a new record ID with the specified name in the default zone.

Declaration

- (instancetype)initWithRecordName:(NSString *)recordName;

Parameters

recordName

The name to use to identify the record. The string must contain only ASCII characters, must not exceed 255 characters, and must not start with an underscore. If you specify nil or an empty string for this parameter, this method throws an exception.

Return Value

An initialized record ID object or nil if the object cannot be created.

Discussion

Use this method when you are creating or searching for records in the default zone.

See Also

Initializing a Record ID

- initWithRecordName:zoneID:

Initializes and returns a new record ID with the specified name and zone information.