idarr =@[];
if([arrisKindOfClass:[NSArrayclass]]) {
NSLog(@"数组");
}elseif([arrisKindOfClass:[NSDictionaryclass]]){
NSLog(@"字典");
}else{
NSLog(@"其他");
}
idarr =@[];
if([arrisKindOfClass:[NSArrayclass]]) {
NSLog(@"数组");
}elseif([arrisKindOfClass:[NSDictionaryclass]]){
NSLog(@"字典");
}else{
NSLog(@"其他");
}
本文标题:iOS 判断数据类型(未知类型是否为字典、数组)
本文链接:https://www.haomeiwen.com/subject/wsxksltx.html
网友评论