Files
ManagerDemo/Pods/DTFoundation/Core/Source/NSString+DTURLEncoding.h
T
2014-08-08 13:27:54 +08:00

30 lines
728 B
Objective-C

//
// NSString+DTURLEncoding.h
// DTFoundation
//
// Created by Oliver Drobnik on 4/16/12.
// Copyright (c) 2012 Cocoanetics. All rights reserved.
//
/**
A collection of useful additions for `NSString` to deal with URL encoding.
*/
@interface NSString (DTURLEncoding)
/**-------------------------------------------------------------------------------------
@name Encoding Strings for URLs
---------------------------------------------------------------------------------------
*/
/** Encoding suitable for use in URLs.
stringByAddingPercentEscapes does not replace serveral characters which are problematics in URLs.
@return The encoded version of the receiver.
*/
- (NSString *)stringByURLEncoding;
@end