Inherits from NSObject
Conforms to NSFastEnumeration
Declared in TKMutableArray.h

Overview

Represents a mutable array that supports keyValuePath access to its items.

Properties

array

Returns a NSArray representation of the object.

@property (nonatomic, strong, readonly) NSArray *array

Declared In

TKMutableArray.h

Instance Methods

addObject:

Adds an object to the array.

- (void)addObject:(id)object

Parameters

object

The object which will be added to the array.

Declared In

TKMutableArray.h

count

Returns the count of objects.

- (NSUInteger)count

Return Value

The count.

Declared In

TKMutableArray.h

firstObject

Retruns the first object in the array.

- (id)firstObject

Declared In

TKMutableArray.h

initWithArray:

Initializes a mutable array from an array.

- (instancetype)initWithArray:(NSArray *)array

Parameters

array

The array used for initialization.

Declared In

TKMutableArray.h

lastObject

Returns the last object in the array.

- (id)lastObject

Declared In

TKMutableArray.h

objectAtIndex:

Returns a object at an index.

- (id)objectAtIndex:(NSUInteger)index

Parameters

index

The object’s index.

Return Value

A object

Declared In

TKMutableArray.h

objectAtIndexedSubscript:

Returns the object at the specified index.

- (id)objectAtIndexedSubscript:(NSUInteger)idx

Parameters

idx

The object’s index in the array

Declared In

TKMutableArray.h

removeObject:

Removes object from the array

- (void)removeObject:(id)object

Parameters

object

The object which will be removed from the array.

Declared In

TKMutableArray.h

removeObjectAtIndex:

Removes an object at a specified index.

- (void)removeObjectAtIndex:(NSUInteger)index

Parameters

index

The index of the object that will be removed.

Declared In

TKMutableArray.h

setObject:atIndexedSubscript:

Sets an object at specific index

- (void)setObject:(id)obj atIndexedSubscript:(NSUInteger)idx

Parameters

obj

The object

idx

The index position

Declared In

TKMutableArray.h