Instance Property

lenient

A Boolean value that indicates whether the receiver uses heuristics when parsing a string.

Declaration

@property(getter=isLenient) BOOL lenient;

Discussion

YES if the receiver has been set to use heuristics when parsing a string to guess at the date which is intended, otherwise NO.

If a formatter is set to be lenient, when parsing a string it uses heuristics to guess at the date which is intended. As with any guessing, it may get the result date wrong (that is, a date other than that which was intended).

See Also

Managing Natural Language Support

- allowsNaturalLanguage

Returns a Boolean value that indicates whether the receiver attempts to process dates entered as a vernacular string.

Deprecated
doesRelativeDateFormatting

A Boolean value that indicates whether the receiver uses phrases such as “today” and “tomorrow” for the date component.

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