iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIDateValues
@interface SCIDateValues : SCIDisposableBase <ISCIValues>
Defines a NSDate values collection.
-
Maximum capacity of underlying array.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger capacity;Swift
var capacity: Int { get } -
Creates a new
SCIDateValuesinstance.Declaration
Objective-C
- (nonnull instancetype)initWithCapacity:(NSInteger)capacity;Swift
init(capacity: Int)Parameters
capacityThe initial capacity.
-
Creates a new
SCIDateValuesinstance and initializes it with specified array.Declaration
Objective-C
- (nonnull instancetype)initWithItems:(nonnull const double *)items count:(NSInteger)count;Parameters
itemsThe array with items.
countThe count of passed in items.
-
Gets the internal items array.
Declaration
Objective-C
@property (nonatomic, readonly, getter=getItemsArray) NS_REFINED_FOR_SWIFT double *itemsArray;Return Value
The items array.
-
Adds new
Datevalue.Declaration
Objective-C
- (void)add:(nonnull NSDate *)value;Swift
func add(_ value: Date)Parameters
valueThe value to add.
-
Adds new value represented by
timeIntervalSince1970.Declaration
Objective-C
- (void)addTime:(double)value;Swift
func addTime(_ value: Double)Parameters
valueThe value to add.
-
Adds new value at specified location.
Declaration
Objective-C
- (void)insert:(nonnull NSDate *)value at:(NSInteger)index;Swift
func insert(_ value: Date, at index: Int)Parameters
indexThe location to add value at.
valueThe value to add.
-
Adds new value represented by
timeIntervalSince1970at specified location.Declaration
Objective-C
- (void)insertTime:(double)value at:(NSInteger)index;Swift
func insertTime(_ value: Double, at index: Int)Parameters
indexThe location to add value at.
valueThe value to add.
-
Adds multiple
Datevalues.Declaration
Objective-C
- (void)addValues:(nonnull NSArray<NSDate *> *)values;Swift
func add(_ values: [Date])Parameters
valuesThe values to add.
-
Deprecated
Please use
-addValues:insteadAdds multiple
Datevalues.Declaration
Objective-C
- (void)addValues:(nonnull NSArray<NSDate *> *)values count:(NSInteger)count;Swift
func add(_ values: [Date], count: Int)Parameters
valuesThe values to add.
countThe amount of values to add.
-
Adds multiple values represented by
timeIntervalSince1970from array.Declaration
Objective-C
- (void)addTimes:(nonnull const double *)values count:(NSInteger)count;Swift
func addTimes(_ values: UnsafePointer<Double>, count: Int)Parameters
valuesThe values to add.
countThe amount of values to add.
-
Deprecated
Please use
-addTimes:startIndex:countinsteadAdds multiple values from array region.
Declaration
Objective-C
- (void)addValues:(nonnull NSArray<NSDate *> *)values startIndex:(NSInteger)startIndex count:(NSInteger)count;Swift
func add(_ values: [Date], start startIndex: Int, count: Int)Parameters
valuesThe values array to add.
startIndexThe index of first value to add.
countThe amount of values to add.
-
Adds multiple values represented by
timeIntervalSince1970from array region.Declaration
Objective-C
- (void)addTimes:(nonnull const double *)values startIndex:(NSInteger)startIndex count:(NSInteger)count;Swift
func addTimes(_ values: UnsafePointer<Double>, startIndex: Int, count: Int)Parameters
valuesThe values array to add.
startIndexThe index of first value to add.
countThe amount of values to add.
-
Sets the value at specified location.
Declaration
Objective-C
- (void)set:(nonnull NSDate *)value at:(NSInteger)index;Swift
func set(_ value: Date, at index: Int)Parameters
valueThe value to set.
indexThe index to set value at.
-
Sets the value in
timeIntervalSince1970at specified location.Declaration
Objective-C
- (void)setTime:(double)value at:(NSInteger)index;Swift
func setTime(_ value: Double, at index: Int)Parameters
valueThe value to set.
indexThe index to set value at.
-
Gets the value at specified location.
Declaration
Objective-C
- (nonnull NSDate *)getValueAt:(NSInteger)index;Swift
func getValueAt(_ index: Int) -> DateParameters
indexThe index of value to get.
Return Value
The value.
-
Gets the value in
timeIntervalSince1970at specified location.Declaration
Objective-C
- (double)getTimeAt:(NSInteger)index;Swift
func getTimeAt(_ index: Int) -> DoubleParameters
indexThe index of value to get.
Return Value
The value.
-
Removes value at specified location.
Declaration
Objective-C
- (void)removeAt:(NSInteger)index;Swift
func remove(at index: Int)Parameters
indexThe index to remove value at.
View on GitHub