I'm writing in my code, static const NSString *a = @"HARDIk"; this is in a.h file
now i use this,
a object in any b file I'm getting warning a defined but not used
how to remove this warning?
I'm writing in my code, static const NSString *a = @"HARDIk"; this is in a.h file
now i use this,
a object in any b file I'm getting warning a defined but not used
how to remove this warning?
You have to put the definition into the implementation (.m) file. If you want to remove the symbol a
from another implementation file, you have to remove the static
and put a declaration
extern NSString* a;
in your header.