Here's the code...
Here's the error.
error: incompatible type for argument 1 of 'setText:'
The text property in UILabel accepts NSStrings only but I need it to display float values. I looked under NSString but couldn't find anything such as 'stringFromDouble' so I don't know what to do.
Also... I got this warning.
I don't understand what this warning means. Can anyone help?
Thanks in advance, Nate
Code:
- (void)sendVariable:(float)variable toOutlet:(id)outlet {
[outlet setText:variable];
}
Here's the error.
error: incompatible type for argument 1 of 'setText:'
The text property in UILabel accepts NSStrings only but I need it to display float values. I looked under NSString but couldn't find anything such as 'stringFromDouble' so I don't know what to do.
Also... I got this warning.
Code:
warning: conflicting types for '-(void)sendVariable:(float)variable toOutlet:(id)outlet'
I don't understand what this warning means. Can anyone help?
Thanks in advance, Nate