出现这种问题一般是你把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. redis的发布订阅模式

    概要 redis的每个server实例都维护着一个保存服务器状态的redisServer结构 struct redisServer {     /* Pubsub */     // 字典,键为频道, ...

  2. Window.navigator

    定义和用法 userAgent 属性是一个只读的字符串,声明了浏览器用于 HTTP 请求的用户代理头的值. 一般来讲,它是在 navigator.appCodeName 的值之后加上斜线和 navig ...

  3. 数据库 SQL :数据库三大泛式简谈

    相信,在学习数据库知识时,大家都会碰到这个概念问题:数据三大泛式,同时,在面试过程中,可能大部分面试官也会提及这个问题. 首先,看看维基百科对于三大泛式的定义: 数据库规范化,又称数据库或资料库的正规 ...

  4. Notepad++配置Python运行环境

    转自:http://www.cnblogs.com/zhcncn/p/3969419.html Notepad++配置Python开发环境   1. 安装Python 1 下载 我选择了32位的2.7 ...

  5. START167 AND BOOT167

    http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka10535.html C166: START167 AND BOO ...

  6. 编写你自己的单点登录(SSO)服务

    王昱 yuwang881@gmail.com   博客地址http://yuwang881.blog.sohu.com 摘要:单点登录(SSO)的技术被越来越广泛地运用到各个领域的软件系统其中.本文从 ...

  7. SAP MRP的计算步骤

          SAP MRP的计算步骤,物料需求计划(简称为MRP)与主生产计划一样属于ERP计划管理体系,它主要解决企业生产中的物料需求与供给之间的关系,即无论是对独立需求的物料,还是相关需求的物料, ...

  8. Codeforces Round #309 (Div. 2) A. Kyoya and Photobooks 字符串水题

    A. Kyoya and Photobooks Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/contest/5 ...

  9. HTML的disabled属性及readonly属性

    disabled属性的input不会提交到服务器. readonly属性的input会提交到服务器.

  10. UVA 1484 - Alice and Bob's Trip(树形DP)

    题目链接:1484 - Alice and Bob's Trip 题意:BOB和ALICE这对狗男女在一颗树上走,BOB先走,BOB要尽量使得总路径权和大,ALICE要小,可是有个条件,就是路径权值总 ...