Contents

data(fromTXTRecord:)

Returns an NSData object representing a TXT record formed from a given dictionary.

Declaration

class func data(fromTXTRecord txtDictionary: [String : Data]) -> Data

Parameters

  • txtDictionary:

    A dictionary containing a TXT record.

Return Value

An NSData object representing TXT data formed from txtDictionary. Fails an assertion if txtDictionary cannot be represented as an NSData object.

See Also

Configuring Network Services