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