Instance Property

description

Returns a string that describes the contents of the receiver.

Required.

Declaration

@property(readonly, copy) NSString *description;

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

Describing Objects

debugDescription

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software