mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 04:20:21 +08:00
25 lines
600 B
Objective-C
25 lines
600 B
Objective-C
//
|
|
// NSDictionary+RKAdditions.h
|
|
// RestKit
|
|
//
|
|
// Created by Blake Watters on 9/5/10.
|
|
// Copyright 2010 Two Toasters. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface NSDictionary (RKAdditions)
|
|
|
|
/**
|
|
* Creates and initializes a dictionary with key value pairs, with the keys specified
|
|
* first instead of the objects.
|
|
*/
|
|
+ (id)dictionaryWithKeysAndObjects:(id)firstKey, ... NS_REQUIRES_NIL_TERMINATION;
|
|
|
|
/**
|
|
* Strips out any percent escapes (such as %20) from the receiving dictionary's key and objects.
|
|
*/
|
|
- (NSDictionary *)removePercentEscapesFromKeysAndObjects;
|
|
|
|
@end
|