i am using xcode ,and have a question in objective c ,maby you can help me .
my function gets a string, which she takes and put into an sql statement , and i am not sure how to do that because the statement is a char, and i found many ways to convert it.
i do this :
sql_for_event= " SELECT basic_pic,spriteSheet,sound FROM DataBase WHEN event= %c",[awaking_event UTF8String] ;
when sql_for_event is the statement, and awaking_event is a NSString i get to the function.
how can i do that ?
thanks a lot .
The %c specifier only prints a single
charand it would need to be a part of ansprintfcall with your scenario. An easier way would be