class - How to determine the structure of an iOS (id) object? -



class - How to determine the structure of an iOS (id) object? -

when phone call function ios app, returns id info type. can't see function don't know it's doing or homecoming type is.

if print console using nslog("@"...) string similar this: 2012-01-18 19:03:08.915 helloworld[165:707] key press state.

is there way me determine construction of basic id object? how go getting specific part of response out, such "key press state". string parsing seems horrible idea, maybe that's way. perhaps info nsstring?

thanks!

try this:

nslog(@"mystery object %@", nsstringfromclass([mysteryobject class]));

ios class casting nsstring nslog

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -