So this code works (sends the method name as a string to the receiving method)
[self.Client sendDigitalJoinAndReleaseByName:[NSString stringWithFormat:@"%s",_cmd]];
However since ios 6 (I think) I now get a warning
Format specifies type 'char *' but the argument has type SEL
Is there even a format specifier for SEL? What is the proper way to do this (so that there is no warning)?
Just use NSStringFromSelector(_cmd) and print the result.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With