Mobile SDK iOS: EPZString

From ePrize Developers Wiki

(Difference between revisions)
Jump to: navigation, search
(Initial authoring.)
Current revision (15:34, 7 November 2014) (edit) (undo)
m (Minor formatting updates)
 
Line 35: Line 35:
-
 
+
<hr/>
=== encodedStringFromDictionary: ===
=== encodedStringFromDictionary: ===

Current revision

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