IOS Network request, dictionary nested dictionary in Parameters

Source: Internet
Author: User

Yesterday when the network request, there is an interface that requires a dictionary nested dictionary, the browser splicing format is: Http://lefen.huyongle.com/app/account.php?c=set_user_info&device_ index=104&token=4347620894839131881&user_info={"name": "Fuck"}

That's the last dictionary I've been doing for a while.

1. First of all, I use AFN network request, in fact, if the background is better, directly in the dictionary in the package A dictionary can be directly passed as a parameter

2. Otherwise, like me, I put the last dictionary with a string into a dictionary format to pass through, OK: nsstring *tmp = @ "{\" name\ ": \" Fuck\ "}";

This is put into the dictionary, after passing through, the backstage can be recognized. What a pit Father!!

IOS Network request, dictionary nested dictionary in Parameters

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.