data(using:)
Returns an NSData object containing a representation of the receiver encoded using a given encoding.
Declaration
func data(using encoding: UInt) -> Data?Parameters
- encoding:
A string encoding. For possible values, see Nsstringencoding.
Return Value
The result of invoking data(using:allowLossyConversion:) with false as the second argument (that is, requiring lossless conversion).