Sunday, December 1, 2013

Ask a question comparing Shaleng

Example:
id data = @ "abc";
Is there any way you can determine the data type of data and the output data type name?

The results should be:
The output data is the data type name: NSString
Reply:
NSLog (@ "% @", [data class]);
Reply:
The reply was deleted at the moderator 2012-07-09 09:34:29

Reply:
cited a floor reply:
NSLog (@ "% @", [data class]);

Learning
Reply:
[Data isKindOfClass: [NSString class]]

No comments:

Post a Comment