commit | author | age
|
a0a843
|
1 |
// |
H |
2 |
// TWTRUtils.h |
|
3 |
// TWTRAuthentication |
|
4 |
// |
|
5 |
// Created by Mustafa Furniturewala on 2/6/14. |
|
6 |
// Copyright (c) 2014 Mustafa Furniturewala. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#if IS_UIKIT_AVAILABLE |
|
10 |
#import <UIKit/UIKit.h> |
|
11 |
#else |
|
12 |
#import <Cocoa/Cocoa.h> |
|
13 |
#endif |
|
14 |
|
|
15 |
@interface TWTRUtils : NSObject |
|
16 |
|
|
17 |
+ (NSDictionary *)dictionaryWithQueryString:(NSString *)queryString; |
|
18 |
+ (NSString *)queryStringFromDictionary:(NSDictionary *)dictionary; |
|
19 |
+ (NSString *)urlEncodedStringForString:(NSString *)inputString; |
|
20 |
+ (NSString *)urlDecodedStringForString:(NSString *)inputString; |
|
21 |
+ (NSString *)base64EncodedStringWithData:(NSData *)data; |
|
22 |
#if IS_UIKIT_AVAILABLE |
|
23 |
+ (UIViewController *)topViewController; |
|
24 |
#endif |
|
25 |
+ (NSString *)localizedLongAppName; |
|
26 |
+ (NSString *)localizedShortAppName; |
|
27 |
|
|
28 |
/** |
|
29 |
* Returns YES if both objects are nil or if obj. |
|
30 |
*/ |
|
31 |
+ (BOOL)isEqualOrBothNil:(NSObject *)obj other:(NSObject *)otherObj; |
|
32 |
|
|
33 |
@end |