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

NSString creation method extension. More...

#import <NSString.h>

Instance Methods

Initilizing a String
(instancetype) - initWithInteger:
 Initialize an NSString from integer value. More...
 
(instancetype) - initWithConcatnatingStrings:
 Initialize an NSString object with concatnating given arguments. More...
 

Class Methods

Creating a String
(instancetype) + stringWithInteger:
 Creates and returns an NSString from integer value. More...
 
(instancetype) + stringWithFormat:arguments:
 Creates and returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to the user’s default locale. More...
 
(nullable instancetype) + stringWithData:encoding:
 Creates and returns an NSString object initialized by converting given data into Unicode characters using a given encoding. More...
 
(instancetype) + stringWithConcatnatingStrings:
 Creates and returns an NSString object with concatnating given arguments. More...
 

Detailed Description

NSString creation method extension.

Method Documentation

- (instancetype) initWithConcatnatingStrings: (NSString *)  first
,   NS_REQUIRES_NIL_TERMINATION 

Initialize an NSString object with concatnating given arguments.

Appends all arguments to first string one by one by order.

- (instancetype) initWithInteger: (NSInteger)  value

Initialize an NSString from integer value.

Implemented with NSString initWithFormat:

+ (instancetype) stringWithConcatnatingStrings: (NSString *)  first
,   NS_REQUIRES_NIL_TERMINATION 

Creates and returns an NSString object with concatnating given arguments.

+ (nullable instancetype) stringWithData: (NSData *)  data
encoding: (NSStringEncoding)  encoding 

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

See also
initWithData:encoding:
+ (instancetype) stringWithFormat: (NSString *)  format
arguments: (1) 
(0)  NS_FORMAT_FUNCTION 

Creates and returns an NSString object initialized by using a given format string as a template into which the remaining argument values are substituted according to the user’s default locale.

See also
initWithFormat:arguments:
+ (instancetype) stringWithInteger: (NSInteger)  value

Creates and returns an NSString from integer value.

See also
initWithInteger:

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