Mobile SDK iOS: EPZString

From ePrize Developers Wiki

Revision as of 21:20, 6 November 2014 by Anthony-hessler (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents

Overview

The EPZString class is a convenience class for working with strings. Presently, there are only methods for encoding strings, which use improved encoding methods that encode characters not included by the NSString method stringByAddingPercentEscapesUsingEncoding.

Though this is a publicly available class in the SDK, you will likely not need to use it, as it is referenced by the core SDK logic for all necessary encoding needs.


Tasks

Encoding Strings
+ encodedString:
+ encodedStringFromDictionary:


Class Methods

encodedString:

Encodes the string passed in to the method.

+ (NSString *) encodedString:(NSString *)string

Parameters

string
The string value to be encoded.

Return Value
An encoded string.

Discussion
This method encodes the specified string and returns the encoded value.

Declared In
EPZString.h



encodedStringFromDictionary:

Encodes the dictionary passed in to the method into a string.

+ (NSString *) encodedStringFromDictionary:(NSDictionary *)dictionary

Parameters

dictionary
A single-level dictionary of key/value pairs to be converted into an encoded string.

Return Value
An encoded string.

Discussion
This method converts the specified dictionary into an encoded string and returns the encoded value.

Declared In
EPZString.h

Personal tools