Assertion failure in -[AFHTTPRequestSerializers requestWithMethod:URLString:parameters:error:]

今天调用以前的接口的时候 发生了错 Assertion failure in -[AFHTTPRequestSerializers requestWithMethod:URLString:parameters:error:], /Users/****/Desktop/****/****/NewtabbarDemo/Helps/AFNetworkingT/AFURLRequestSerializationT.m:355

错误的原因是接口太风骚了  AFN 进行CharacterSet集合石  把URL给整成空的了  直接指定类型就可以了.


NSString *url = [@"http:// sjakdskfsk.9792.789.auhda&,ikc" stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];

你可能感兴趣的:(Assertion failure in -[AFHTTPRequestSerializers requestWithMethod:URLString:parameters:error:])