SSamTure.net

워드프레스

How to call a function (method) in Objective-C

[c]
// Data Received //
NSString *data;
data = [[NSString alloc] initWithFormat: @"%@n%@", resultText.text, output];
if (data = @"rt=ok")
{
servername.text = data; //THIS WORKS
}
else{
void parse(data); // CALL THE FUNCTION FROM HERE
}

– (void)parse:data {
NSLog("PARSING DATA");
txtsend.text = data;
return;
}
[/c]

Leave a Reply

Your email address will not be published. Required fields are marked *