Accela SDK for iOS  V3.0
/Users/alan/Accela/AccelaMobile/AccelaMobile/AMUtility.h
00001 //
00002 //  AMUtility.h
00003 //  Accela SDK
00004 //
00005 //  Created by Alan on 12/7/12.
00006 //  Copyright 2012 Accela Inc. All rights reserved.
00007 //
00008 
00009 #import <Foundation/Foundation.h>
00010 #import <UIKit/UIKit.h>
00011 
00012 #define AMLOCALIZEDSTRING(KEY) [AMUtility localizedStringForKey:KEY withDefault:@""]
00013 
00014 @interface AMUtility : NSObject
00015 
00026 + (NSDictionary*)dictionaryByParsingURLQueryPart:(NSString *)encodedString;
00027 
00037 + (NSString*)stringByURLDecodingString:(NSString*)escapedString;
00038 
00048 + (NSString*)stringByURLEncodingString:(NSString*)unescapedString;
00049 
00057 + (unsigned long)currentTimeInMilliseconds;
00058 
00069 + (NSTimeInterval)randomTimeInterval:(NSTimeInterval)minValue withMaxValue:(NSTimeInterval)maxValue ;
00070 
00076 + (NSBundle *)accelaSDKBundle;
00077 
00078 /*
00079  * Get localized string for key
00080  *
00081  * @since 2.3
00082  */
00083 + (NSString *)localizedStringForKey:(NSString *)key withDefault:(NSString *)value;
00084 
00085 /*
00086  * Get localized string for key
00087  *
00088  * @since 2.3
00089  */
00090 + (NSString *)localizedStringForKey:(NSString *)key withDefault:(NSString *)value inBundle:(NSBundle *)bundle;
00091 
00092 @end
 All Classes Functions Properties