Class

CLKTextProvider

The common behavior for displaying text-based data in a complication.

Declaration

@interface CLKTextProvider : NSObject

Overview

You do not create instances of this class yourself. Instead, you create instances of an appropriate subclass, based on the type of text data you are trying to create. You can also use the textProviderWithFormat: class method to create a generic text provider constructed from a format string and the data from other text provider.

Topics

Creating a Compound Text Provider

+ textProviderWithFormat:

Creates and returns a text provider built from the specified format string.

Creating Localized Text Providers

+ localizableTextProviderWithStringsFileTextKey:

Creates a localizable simple text provider using the strings file key for the text.

+ localizableTextProviderWithStringsFileTextKey:shortTextKey:

Creates a localizable simple text provider using strings file keys for both the regular text and the shorter fallback text.

+ localizableTextProviderWithStringsFileFormatKey:textProviders:

Creates a localizable text provider with a strings file key that resolves to a format string, and with text providers for the replacement arguments.

Setting the Tint Color

tintColor

The tint color to use for text.

Instance Properties

Relationships

Inherits From

Conforms To

See Also

Data Providers

CLKDateTextProvider

A formatted string that conveys a date without any time information.

CLKImageProvider

An image displayed by a complication.

CLKFullColorImageProvider

A full-color image displayed by a complication.

CLKRelativeDateTextProvider

A formatted string that conveys the difference in time between the current date and a date that you specify.

CLKSimpleTextProvider

A single line of text to display in your complication interface.

CLKTimeIntervalTextProvider

A formatted time range.

CLKTimeTextProvider

A formatted time value.

CLKSimpleGaugeProvider

A gauge that shows a fractional value.

CLKTimeIntervalGaugeProvider

A gauge that tracks time intervals.

CLKGaugeProvider

An abstract superclass that provides all the common behaviors for the gauge providers.

CLKSimpleGaugeProviderFillFractionEmpty

A fill value indicating an empty gauge.

CLKGaugeProviderStyle

Visual styles available for gauges.