How do I change the temporary date variable properly?
Nested if- statements, if other statements and so on.
What I have to do is for IBAC which is said under three separate buttons so that the temporary data variable can be changed so that different buttons send different data so that I can get the The result is that the last The date is always prevalent. Edit: Each of the three buttons has a tag variable Specified this problem by specifying, and specify the tag variable for all buttons and poststrings with some Minister is not. By doing this. } it actually works - (zero ) Parser: parsedanded document representative method
- (IBAction) sendXmlData: (ID) sender {if ([the button is pressed]) {temporaryDateVariable = date1Variable} if ([ Self ("auto button pressed")} {temporary date Varyable = date2Variable}} {temporaryDateVariable = date3Variable} NSString * postString = [[NSString alloc ] InitWithFormat: @ "& lt; xml-string & gt;", Temporary Date Variable] // lot of NSXMPPsstuff, that's working.}
- (zero) viewDidoad {button1.tag = x; Button2.tag = y; Button3.tag = z; } - (IBAction) sendXmlData: (ID) sender {switch (((UIButton *) sender) .tag) {case X: Temporary date variable = date1Variable; break; Case y: Temporary DataType = Date 2Variable; } / / Same old
Comments
Post a Comment