Instance Method

removeObjectAtIndex:

Removes the object at index .

Declaration

- (void)removeObjectAtIndex:(NSUInteger)index;

Parameters

index

The index from which to remove the object in the array. The value must not exceed the bounds of the array.

Discussion

To fill the gap, all elements beyond index are moved by subtracting 1 from their index.

See Also

Removing Objects

- removeAllObjects

Empties the array of all its elements.

- removeLastObject

Removes the object with the highest-valued index in the array

- removeObject:

Removes all occurrences in the array of a given object.

- removeObject:inRange:

Removes all occurrences within a specified range in the array of a given object.

- removeObjectsAtIndexes:

Removes the objects at the specified indexes from the array.

- removeObjectIdenticalTo:

Removes all occurrences of a given object in the array.

- removeObjectIdenticalTo:inRange:

Removes all occurrences of anObject within the specified range in the array.

- removeObjectsFromIndices:numIndices:

Removes the specified number of objects from the array, beginning at the specified index.

Deprecated
- removeObjectsInArray:

Removes from the receiving array the objects in another given array.

- removeObjectsInRange:

Removes from the array each of the objects within a given range.