iphone - [NSCFString stringValue]: unrecognized selector sent to instance -
my created application crashed when executing below lines of code c1 integer variable.
nsstring *path = c1.stringvalue;
shows following error in log:
-[nscfstring stringvalue]: unrecognized selector sent instance 0x5566e80 2011-05-11 14:56:15.813 e-trend[1552:207] uncaught exception happens!! (nsinvalidargumentexception: -[nscfstring stringvalue]: unrecognized selector sent instance 0x5566e80) 2011-05-11 14:56:15.816 e-trend[1552:207] * terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[nscfstring stringvalue]: unrecognized selector sent instance 0x5566e80'
if have idea solve issue , please answer accordingly.
where c1 integer variable
what mean? how c1 declared?
if c1
int
, c1.stringvalue
wouldn't compile.
the dot syntax works when object reference -- c1
-- of specific object reference type (not id
) , reference-- class-- responds method.
so, have like:
mythingthatrespondstostringvalue *c1;
and are, somewhere, assigning instance of nsstring
variable leads crash.
Comments
Post a Comment