Question:
Im trying to make a function that takes an objects properties and formats them into a String, then printing out that String as a “Description”. When I run my code, I get an error “Thread 1:EXC_BAD_ACCESS (code=1, address=0x16)” with the return String highlighted red.This is the function:
Answer:
The format seems to be wrong, you have to use correct format if you want to use that method, therefore, have to use%d
for integer, %f
for float example:\()
, like:If you have better answer, please add a comment about this, thank you!