{"action":"opened","issue":{"url":"https://api.github.com/repos/varshylmobile/LocationManager/issues/17","labels_url":"https://api.github.com/repos/varshylmobile/LocationManager/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/varshylmobile/LocationManager/issues/17/comments","events_url":"https://api.github.com/repos/varshylmobile/LocationManager/issues/17/events","html_url":"https://github.com/varshylmobile/LocationManager/issues/17","id":114545913,"number":17,"title":"problem with LocationManager in Swift 2.1","user":{"login":"ylupan","id":14997261,"avatar_url":"https://avatars.githubusercontent.com/u/14997261?v=3","gravatar_id":"","url":"https://api.github.com/users/ylupan","html_url":"https://github.com/ylupan","followers_url":"https://api.github.com/users/ylupan/followers","following_url":"https://api.github.com/users/ylupan/following{/other_user}","gists_url":"https://api.github.com/users/ylupan/gists{/gist_id}","starred_url":"https://api.github.com/users/ylupan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ylupan/subscriptions","organizations_url":"https://api.github.com/users/ylupan/orgs","repos_url":"https://api.github.com/users/ylupan/repos","events_url":"https://api.github.com/users/ylupan/events{/privacy}","received_events_url":"https://api.github.com/users/ylupan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-02T08:14:31Z","updated_at":"2015-11-02T08:14:31Z","closed_at":null,"body":"In Swift 2.1 I have 2 problem:\r\n\r\n1. 'stringByAddingPercentEscapesUsingEncoding' was deprecated in iOS 9.0: Use -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.\r\n\r\n2. 'sendAsynchronousRequest(_:queue:completionHandler:)' was deprecated in iOS 9.0: Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h\r\n\r\n\r\nplease correct it"}}