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:
Reply:
Learning
Reply:
[Data isKindOfClass: [NSString class]]
No comments:
Post a Comment