Declared in NSData+BFKit.h

Overview

This category adds some useful methods to NSData

Tasks

Class Methods

convertToASCIIString:

+ (NSString *_Nonnull)convertToASCIIString:(NSData *_Nonnull)data
Discussion

Convert the given NSData to ASCII NSString

Parameters

data

The NSData to be converted

Return Value

Returns the converted NSData as ASCII NSString

Declared In

NSData+BFKit.h

convertToUTF8String:

+ (NSString *_Nonnull)convertToUTF8String:(NSData *_Nonnull)data
Discussion

Convert the given NSData to UTF8 NSString

Parameters

data

The NSData to be converted

Return Value

Returns the converted NSData as UTF8 NSString

Declared In

NSData+BFKit.h

Instance Methods

convertToASCIIString

- (NSString *_Nonnull)convertToASCIIString
Discussion

Convert self to a ASCII NSString

Return Value

Returns self as ASCII NSString

Declared In

NSData+BFKit.h

convertToUTF8String

- (NSString *_Nonnull)convertToUTF8String
Discussion

Convert self to a UTF8 NSString

Return Value

Returns self as UTF8 NSString

Declared In

NSData+BFKit.h

convertUUIDToString

- (NSString *_Nullable)convertUUIDToString
Discussion

Convert self UUID to NSString. Useful for push notifications

Return Value

Returns self as NSString from UUID

Declared In

NSData+BFKit.h