现在的位置: 首页 > 综合 > 正文

NSNumber 类型判断

2017年12月08日 ⁄ 综合 ⁄ 共 342字 ⁄ 字号 评论关闭

 

//        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");
//        }

【上篇】
【下篇】

抱歉!评论已关闭.