AFNetworking
allows you to add an NSDictionary
of parameters to a request, and it will append them to the request. So if I wanted to do a GET
request with ?q=8&home=8888
I'd just making an NSDictionary like @{@"q": @"8", @"home": @"8888"}
very simply.
Is there a way to do this with NSURLSession
/ NSURLConnection
/ NSURLRequest
?
I know I can use NSJSONSerialization
for appending JSON data, but what if I just want them as GET
parameters in the URL? Should I just add a category?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…