出现这种问题一般是你把int类型的数值赋给了NSString。

比如: 你定义了一个NSString类型的属性sex,但是服务端返回的sex字段实际上是NSNumber类型,

你直接把NSNumber类型的值赋给了sex,然后把这个sex赋给了_sexLabel.text,这时就会出现这种错误。
使用Plist文件时遇到这种错误也可以按照这个方法来检查。

如果出错的地方是一大块代码:

可以一个个代码块注释起来测试。
  //求职状态
NSString *qzzt;
if (![dict[@"qzzt"] isEqual:[NSNull null]]) {
NSDictionary *tempDict = [UserDataTools getMyInfoJobStatusDict];
qzzt = [tempDict objectForKey:[NSString stringWithFormat:@"%@",dict[@"qzzt"]]];
} else {
qzzt = @"请选择";
}
[self setControlsTextWithTag: text:qzzt]; //工作年限
NSString *years;
if (![dict[@"gznx"] isEqual:[NSNull null]]) {
years = [UserDataTools getYearsTextWithId:dict[@"gznx"]];
} else {
years = @"请选择";
}
[self setControlsTextWithTag: text:years]; //目标地点
NSString *area;
if (![dict[@"area"] isEqual:[NSNull null]]) {
area = [UserDataTools getAreaTextWithId:dict[@"area"]];
} else {
area = @"请选择";
}
[self setControlsTextWithTag: text:area]; //期望薪资
NSString *money;
if (![dict[@"money"] isEqual:[NSNull null]]) {
money = [UserDataTools getSalaryTextWithId:dict[@"money"]];
} else {
money = @"请选择";
}
[self setControlsTextWithTag: text:money]; //学历
NSString *education;
if (![dict[@"education"] isEqual:[NSNull null]]) {
education = [UserDataTools getEducationTextWithId:dict[@"education"]];
} else {
education = @"请选择";
}
[self setControlsTextWithTag: text:education];//工作经验(公司名)
[self setControlsTextWithTag: text:dict[@"companyname"]];
//自我介绍
[self setControlsTextWithTag: text:[NSString stringWithFormat:@"%@",dict[@"zwpj"]]]; //联系电话
[self setControlsTextWithTag: text:[NSString stringWithFormat:@"%@",dict[@"phone"]]];
//居住地
[self setControlsTextWithTag: text:[NSString stringWithFormat:@"%@",dict[@"jzd"]]];

[__NSCFNumber length]: unrecognized selector sent to instance 0x8b3c310的更多相关文章

  1. -[__NSCFNumber length]: unrecognized selector sent to instance 0xb0000000000000e3

    网络数据解析出现-[__NSCFNumber length]: unrecognized selector sent to instance 0xb0000000000000e3这样的错误,具体 re ...

  2. iOS开发——异常:[__NSCFNumber length]: unrecognized selector sent to instance

      *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumbe ...

  3. reason: '-[__NSCFNumber rangeOfCharacterFromSet:]: unrecognized selector sent to instance

    类型的不匹配,把类型转化对应的数据类型,例: model.price 是模型数据,其值为1550: cell.label.text = [NSString stringWithFormat:@&quo ...

  4. __NSCFNumber isEqualToString:]: unrecognized selector sent to instance 0xb000000000000003

    出现这个报错的原因是:拿数字与字符串进行对比了. 检查两边的数据格式是否一致 如果不一致,可以使用[nsstring stringwithformate:@"%d",xx]包装一下 ...

  5. ios [__NSCFNumber isEqualToString:]: unrecognized selector sent to instance 0x7a97d4c0'报错

    今天接口由get换成post,我去改进行登录但出现了这个错误,首先出错先看能不能与服务器交互,能不能获得数据,其次,获得的数据是不是你想要的,记住,首先出错要想到是自己的问题,还有就是程序崩了要学会自 ...

  6. CBUUID UUIDString unrecognized selector sent to instance 错误

    CBUUID UUIDString unrecognized selector sent to instance 错误 ios7.0,4s 蓝牙出现上述错误! 查看api可知,错误原因,由于CBUUI ...

  7. '-[__NSCFString stringFromMD5]: unrecognized selector sent to instance 0x14d89a50'

    类型:ios 问题描述: 导入百度地图 然后在模拟器运行可以,真机测试不行: 报错: '-[__NSCFString stringFromMD5]: unrecognized selector sen ...

  8. unrecognized selector sent to instance

    今天长一见识(特此感谢小星星老湿-坏笑),凡是遇到“unrecognized selector sent to instance *******”的都是******方法没有,比如这种的错误: 可以尝试 ...

  9. IOS 错误 [UIWebView cut:]: unrecognized selector sent to instance

    那在什么场景中会出现这种情况呢? 如果一个包含文字的输入元素有焦点,然后按钮的点击会导致输入失去焦点,然后接下来在输入时双按会重新得到焦点并从弹出bar中选择剪切复制粘贴,就会导致此error. 也就 ...

随机推荐

  1. VC++中几种字符标志的解释

    VC++中几种字符标志的解释 LPSTR = char * LPCSTR = const char * LPWSTR = wchar_t * LPCWSTR = const wchar_t * LPO ...

  2. zookeeper的安装和启动

    最近的手上一个项目要用到dubbo,顺便研究下zookeeper 1.下载 下载地址:http://www.apache.org/dyn/closer.cgi/zookeeper/,下载解压到D:\t ...

  3. hdu 2821 Pusher (dfs)

    把这个写出来是不是就意味着把   http://www.hacker.org/push  这个游戏打爆了? ~啊哈哈哈 其实只要找到一个就可以退出了  所以效率也不算很低的  可以直接DFS呀呀呀呀 ...

  4. JS瀑布流布局模式(1)

    在实际的项目中,偶尔会用到一种布局——瀑布流布局.瀑布流布局的特点是,在多列布局时,可以保证内容区块在水平方向上不产生大的空隙,类似瀑布的效果.简单的说,在垂直列表里,内容区块是一个挨着一个的.当内容 ...

  5. ZTE AD3812 3G模块在linux 2.6.34 内核的开发板上的支持方法

    先说段废话,话说在linux 2.6.34 下,好多比较新的3G网卡及3G模块都没有很好的支持.如果想支持的这些3G网卡/3G模块呢,基本上有两种方式: 1.使用该3G模块的 linux 下的驱动,交 ...

  6. boost 线程、互斥体、条件变量

    1.任何技术都是针对特定场景设计的,也就是说,为了解决某个问题而设计的. 2.考虑下面一种场景:一个小旅馆,只有一个卫生间,有清洁人员,店主人,和旅客.卫生间用完之后,就会自动锁闭,必须取钥匙,才能进 ...

  7. 利用FluorineFX录制音频与视频

    要做一个完整的录制程序,处理RPC请求的类不仅要继承ApplicationAdapter,还要继承IStreamService接口,该接口定义了play(),pause(),publish(),cre ...

  8. JS的setTimeout函数第一个参数问题

    setTimeout的第一个参数只能放一个无参的函数,更像放了一个函数指针在那里,如果要放带参数的话,就要拿个匿名函数包裹一下

  9. QStyle

    转贴: http://hi.baidu.com/yjj2008/blog/item/6cd4a1892ef0d4b60f2444a5.html 本文介绍了如何使用qt提供的接口来设计自己的GUI风格( ...

  10. 编译linux内核以及depmod的使用

    转载:http://blog.lmtw.com/b/18215/archives/2010/71074.html depmod(depend module) 功能说明:分析可载入模块的相依性. 语 法 ...