Problems of network request transmission parameters

Source: Internet
Author: User

1. First the top of the page has the switch button, the button switch can display different pages, each page and Uitextfield: (Enter the bank account, enter the amount of the transfer, enter the password, etc.)

2. The Key,value value is different when the parameter is passed for example:

Nsdictionary *params = @{@ "Fundid": [[Gxsharedclass Sharedclass] gxaccount],

@ "Moneytype": @ "0",

@ "Bankcode": Bankcode,

@ "Banktrantype": TransferType,

@ "Tranamt": Tranamt,

@ "Operway": @ "H",

Passwordkey:p Asswordvalue}; Passwordkey two pages all need to pass this key and value

3. We first judge that the page is based on this judgment to define the tag _selectindex;

In viewdidload give _selectindex = 0; Assign value

And then, when the interface is tuned,

NSString *passwordvalue = @ "";

NSString *passwordkey = @ "";

if (Self.selectindex = = 0) {

if ([_bankpwdstatus isequaltostring:@ "1"]) {

Passwordkey = @ "Bankpwd";

Passwordvalue = bankpwd;

}

}

else if (Self.selectindex = = 1) {

if ([_fundpwdstatus isequaltostring:@ "1"]) {

Passwordvalue = fundpwd;

Passwordkey = @ "Fundpwd";

}

}

Nsdictionary *params = @{@ "Fundid": [[Gxsharedclass Sharedclass] gxaccount],

@ "Moneytype": @ "0",

@ "Bankcode": Bankcode,

@ "Banktrantype": TransferType,

@ "Tranamt": Tranamt,

@ "Operway": @ "H",

Passwordkey:p Asswordvalue}; Passwordkey two pages all need to pass this key and value

Bo Master belongs to rookie, the level is limited, hope elegance!!!

Problems of network request transmission 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.