8
Замена для stringByAddingPercentEscapesUsingEncoding в ios9?
В iOS8 и ранее я могу использовать: NSString *str = ...; // some URL NSString *result = [str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; в iOS9 stringByAddingPercentEscapesUsingEncodingзаменено на stringByAddingPercentEncodingWithAllowedCharacters: NSString *str = ...; // some URL NSCharacterSet *set = ???; // where to find set for NSUTF8StringEncoding? NSString *result = [str stringByAddingPercentEncodingWithAllowedCharacters:set]; и у меня …