NSNumber 类型判断

 

//        NSNumber* iValue = [NSNumber numberWithLongLong:10];
//        if(strcmp([iValue objCType],@encode(int8_t)) == 0){
//            NSLog(@"test char");
//        }else if(strcmp([iValue objCType],@encode(int)) == 0){
//            NSLog(@"test int");
//        }else if(strcmp([iValue objCType], @encode(int64_t))==0){
//            NSLog(@"test long");
//        }

你可能感兴趣的:(NSNumber 类型判断)