Declared in NSMutableArray+BFKit.h

Overview

This category adds some useful methods to NSMutableArray

Tasks

Class Methods

sortArrayByKey:array:ascending:

+ (NSMutableArray *_Nonnull)sortArrayByKey:(NSString *_Nonnull)key array:(NSMutableArray *_Nonnull)array ascending:(BOOL)ascending
Discussion

Sort an array by a given key with option for ascending or descending

Parameters

key

The key to order the array

array

The array to be ordered

ascending

A BOOL to choose if ascending or descending

Return Value

Returns the given array ordered by the given key ascending or descending

Declared In

NSMutableArray+BFKit.h

Instance Methods

moveObjectFromIndex:toIndex:

- (void)moveObjectFromIndex:(NSUInteger)from toIndex:(NSUInteger)to
Discussion

Move an object from an index to another

Parameters

from

The index to move from

to

The index to move to

Declared In

NSMutableArray+BFKit.h

reversedArray

- (NSMutableArray *_Nonnull)reversedArray
Discussion

Create a reversed array from self

Return Value

Returns the reversed array

Declared In

NSMutableArray+BFKit.h