AFNetWorking[:] *** Assertion failure in -[AFHTTPRequestSerializer requestWithMethod:URLString:parameters:error:], /Users/caiyueming/Desktop/learn/AFNetWorking/Pods/AFNetworking/AFNetworking/AFURLRequestSerialization.m:
-- ::18.378 AFNetWorking[:] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: URLString'
解决 NSString *url = @"http://c.m.163.com/nc/article/headline/T1348647909107/0-20.html?from=toutiao&size=20&passport=&devId=UJvvQhqbkORVSYk9Uc%2FI9A%3D%3D&lat=omT70CuIO0h3YxQVX4rVCA%3D%3D&lon=MGWjad11EwQbxbC6JR5T6w%3D%3D&version=5.4.5&net=wifi&ts=1451464456&sign=BnW69NOoXlUlJbUQorg5rtjbztbMtwh%2BYmlQL7%2F2kPh48ErR02zJ6%2FKXOnxX046I&encryption=1&canal=netease_gw HTTP/1.1"; 解决: NSString *str1 = [url stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];