NSString(UAURLEncoding)

@interface NSString (UAURLEncoding)

Category extensions for URL encoding and decoding of strings.

  • URL decodes the receiver.

    Declaration

    Objective-C

    - (nullable NSString *)urlDecodedString;

    Swift

    func urlDecoded() -> String?

    Return Value

    A URL dencoded NSString, or nil if decoding failed.

  • URL encodes the receiver.

    Declaration

    Objective-C

    - (nullable NSString *)urlEncodedString;

    Swift

    func urlEncoded() -> String?

    Return Value

    A URL encoded NSString, or nil if encoding failed.