Skip to content

'CFURLCreateStringByAddingPercentEscapes' is deprecated in iOS 9.0 #16

Closed
@sneakybVer

Description

@sneakybVer

'CFURLCreateStringByAddingPercentEscapes' is deprecated: first deprecated in iOS 9.0 - Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid).

Activity

charlesxsh

charlesxsh commented on Jan 2, 2016

@charlesxsh
Contributor

I fixed that
#define TDPCEN(s)
([[s description] stringByAddingPercentEncodingWithAllowedCharacters:[[NSCharacterSet characterSetWithCharactersInString:@"!*'();:@&=+$,/?%#[] "] invertedSet]]) @sneakybVer

mxcl

mxcl commented on Jul 23, 2016

@mxcl
Contributor

Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mxcl@charlesxsh@sneakybVer

        Issue actions

          'CFURLCreateStringByAddingPercentEscapes' is deprecated in iOS 9.0 · Issue #16 · yahoo/TDOAuth