iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

SCICursorCalendarUnitDateFormatter

@interface SCICursorCalendarUnitDateFormatter
    : NSObject <ISCICalendarUnitDateFormatter>

Defines a default date formatter to provide labels for different kind of tooltips, e.g. used by SCICursorModifier.

  • Creates a new instance of SCICursorCalendarUnitDateFormatter class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLocale:(nonnull NSLocale *)locale
                               andTimeZone:(nonnull NSTimeZone *)timeZone;

    Swift

    convenience init(locale: Locale, andTimeZone timeZone: TimeZone)

    Parameters

    locale

    The NSLocale to use by this formatter.

    timeZone

    The NSTimeZone to use by this formatter.

  • Creates a new instance of SCICursorCalendarUnitDateFormatter class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLocale:(nonnull NSLocale *)locale
                               andTimeZone:(nonnull NSTimeZone *)timeZone
                       andCursorDateFormat:(nonnull NSString *)cursorDateFormat
               andGranularCursorDateFormat:
                   (nonnull NSString *)granularCursorDateFormat;

    Swift

    init(locale: Locale, andTimeZone timeZone: TimeZone, andCursorDateFormat cursorDateFormat: String, andGranularCursorDateFormat granularCursorDateFormat: String)

    Parameters

    locale

    The NSLocale to use by this formatter.

    timeZone

    The NSTimeZone to use by this formatter.

    cursorDateFormat

    The NSString with default format string string to use.

    granularCursorDateFormat

    The NSString with default format string string to use when NSCalendarUnit is greater than NSCalendarUnitMonth.