FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSString(NSUTF8StringEncoding) Category Reference

Shortcut for UTF8. More...

#import <NSString.h>

Instance Methods

(nullable NSData *) - dataUsingUTF8Encoding
 Returns an NSData object containing a representation of the receiver encoded using UTF8 encoding. More...
 

Class Methods

(instancetype) + stringWithUTF8Data:
 Creates and returns an NSString object initialized by converting given data into Unicode characters using UTF8 encoding. More...
 

Detailed Description

Shortcut for UTF8.

See also
NSUTF8StringEncoding

Method Documentation

- (nullable NSData *) dataUsingUTF8Encoding

Returns an NSData object containing a representation of the receiver encoded using UTF8 encoding.

See also
dataUsingEncoding:
+ (instancetype) stringWithUTF8Data: (NSData *)  data

Creates and returns an NSString object initialized by converting given data into Unicode characters using UTF8 encoding.

See also
::stringWithData:encoding:

The documentation for this category was generated from the following file: