Declared in NSArray+BFKit.h

Overview

This category adds some useful methods to NSArray

Tasks

Class Methods

arrayToJson:

+ (NSString *_Nonnull)arrayToJson:(NSArray *_Nonnull)array
Discussion

Convert the given array to JSON as NSString

Parameters

array

The array to be reversed

Return Value

Returns the JSON as NSString or nil if error while parsing

Declared In

NSArray+BFKit.h

reversedArray:

+ (NSArray *_Nonnull)reversedArray:(NSArray *_Nonnull)array
Discussion

Create a reversed array from the given array

Parameters

array

The array to be converted

Return Value

Returns the reversed array

Declared In

NSArray+BFKit.h

Instance Methods

arrayToJson

- (NSString *_Nonnull)arrayToJson
Discussion

Convert self to JSON as NSString

Return Value

Returns the JSON as NSString or nil if error while parsing

Declared In

NSArray+BFKit.h

objectAtCircleIndex:

- (id _Nullable)objectAtCircleIndex:(NSInteger)index
Discussion

Simulates the array as a circle. When it is out of range, begins again

Parameters

index

The index

Return Value

Returns the object at a given index

Declared In

NSArray+BFKit.h

reversedArray

- (NSArray *_Nonnull)reversedArray
Discussion

Create a reversed array from self

Return Value

Returns the reversed array

Declared In

NSArray+BFKit.h

safeObjectAtIndex:

- (id _Nullable)safeObjectAtIndex:(NSUInteger)index
Discussion

Get the object at a given index in safe mode (nil if self is empty or out of range)

Parameters

index

The index

Return Value

Returns the object at a given index in safe mode (nil if self is empty or out of range)

Declared In

NSArray+BFKit.h