Instance Property

description

Required.

Returns a string that describes the contents of the receiver.

Declaration

var description: String { get }

Return Value

A string that describes the contents of the receiver.

Discussion

This method is used to create a textual representation of an object, for example in a formatted string:

ClassName *anObject = <#An object#>;
NSString *string = [NSString stringWithFormat:@"anObject is %@", anObject];

See Also

Related Symbols

var debugDescription: String

Returns a string that describes the contents of the receiver for presentation in the debugger.