Inherits from NSObject
Declared in TKRange.h

Overview

A class that represents a range of minimum and maximum values.

Properties

maximum

The range’s maximum.

@property (nonatomic, strong, nullable) id maximum

Declared In

TKRange.h

minimum

The range’s minimum.

@property (nonatomic, strong, nullable) id minimum

Declared In

TKRange.h

Class Methods

rangeWithMinimum:andMaximum:

Initializes the range with its minimum and maximum.

+ (instancetype __nonnull)rangeWithMinimum:(id __nullable)minimum andMaximum:(id __nullable)maximum

Parameters

minimum

The minimum value of the range.

maximum

The maximum value of the range

Declared In

TKRange.h

rangeWithMinimumIndex:andMaximumIndex:

Initializes the range with its minimum and maximum index path.

+ (instancetype __nonnull)rangeWithMinimumIndex:(NSInteger)minimumIndex andMaximumIndex:(NSInteger)maximumIndex

Parameters

minimumIndex

The minimum index of the range.

maximumIndex

The maximum index of the range

Declared In

TKRange.h

Instance Methods

initWithMinimum:andMaximum:

Initializes the range with its minimum and maximum.

- (instancetype __nonnull)initWithMinimum:(id __nullable)minimum andMaximum:(id __nullable)maximum

Parameters

minimum

The minimum value of the range.

maximum

The maximum value of the range

Declared In

TKRange.h

setMinimum:andMaximum:

Defines the range’s minimum and maximum.

- (void)setMinimum:(id __nullable)minimum andMaximum:(id __nullable)maximum

Parameters

minimum

The minimum value of the range.

maximum

The maximum value of the range.

Declared In

TKRange.h

setMinimum:andMaximum:calcWithCurrent:

Defines the range’s minimum and maximum.

- (void)setMinimum:(id __nullable)minimum andMaximum:(id __nullable)maximum calcWithCurrent:(BOOL)includeCurrentRange

Parameters

minimum

The minimum value of the range.

maximum

The maximum value of the range.

includeCurrentRange

Includes the current values in calculation.

Declared In

TKRange.h