Hi,
I have some problems with using a variable as argument with the startSpeakingString method. The variable is an integer and the expression looks like this:
[myObject startSpeakingString: @"%i", variable];
When I do like this I get a "too many arguments" error and if I put a parantes around the string and variable I get a " makes pointer from integer without a cast" warning.
I have tried to add NSLog(@"%i", variable); and it works as expected.
Any Ideas what I might be doing wrong here?
I have some problems with using a variable as argument with the startSpeakingString method. The variable is an integer and the expression looks like this:
[myObject startSpeakingString: @"%i", variable];
When I do like this I get a "too many arguments" error and if I put a parantes around the string and variable I get a " makes pointer from integer without a cast" warning.
I have tried to add NSLog(@"%i", variable); and it works as expected.
Any Ideas what I might be doing wrong here?