Code:
-(IBAction)donow {
NSString *start = input.text;
output.text = start * 1.1;
}
Now this seems really simple, I can't quite see what I'm doing wroing.
'donow' is started when a button is pushed, the value on a textbox (for example's sake called 'input' is stored in a string called 'start'
I then want to put into a label called 'output' the value of 'start' multiplied (or added, divided, subtracted) by a set number.
Can anyone suggest what the answer is here as this provides an error
error: invalid operands to binary * (have 'struct NSString *' and 'struct NSString *')
I'm also thinking I need to release start with [start release] but where do I put it?
I know this seems really simple and I'm convinced it is as I can't actually find any examples to show me how to work it.