【发布时间】:2015-08-07 05:42:06
【问题描述】:
我已经准备好通过谷歌尝试多种解决方案,但我得到了两种错误,解决方案我得到了这个
2015-08-06 18:52:33.110 FastFast[2824:110493] * 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[__NSCFString stringValue]:无法识别的选择器发送到实例 0x7f89c1eb7e50” * 首先抛出调用栈:
但是当我没有应用任何解决方案时,我就会得到这个
2015-08-06 19:09:24.473 FastFast[2933:117451] -[__NSCFNumber 长度]:无法识别的选择器发送到实例 0xb000000000000003 2015-08-06 19:09:24.480 FastFast[2933:117451] * 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[__NSCFNumber 长度]:无法识别的选择器发送到实例 0xb000000000000003” * 首先抛出调用栈:
我从 1 天开始就一直在弄乱这段代码,但找不到实际问题。 但是当我对此功能设置静态限制时,一切正常。
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
NSLog(@"Number Of Row %lu",_AddressArray.count);
return 4; // when set static limit here like this all works fine
return [self.temporaryAddArray count];}
下面的链接属于我的接口文件和实现文件
文件.h https://drive.google.com/file/d/0B85GTvLEHASFVDEwajA1YXp1aUE/view?usp=sharing
文件.m https://drive.google.com/file/d/0B85GTvLEHASFNEhzUnN1U25qaEk/view?usp=sharing
我们将不胜感激。
【问题讨论】:
-
File.m 无法打开,请检查temporaryAddArray 声明
-
我已经检查过 file.m 是可访问的,并且temporaryAddArray没有任何问题有json的响应。
-
{"Android":[{"recip_code":"94541824","recip_fname":"","recip_lname":"","recip_add1":"hillsrtreat 主路 h.no. 3535 ","recip_img":"","recip_add2":"","recip_stateid":"新州","recip_cityid":"都柏林","result":"成功"},{"recip_code":"11493834" ,"recip_fname":"","recip_lname":"","recip_add1":"newdgbfh","recip_img":"","recip_add2":"","recip_stateid":"Westmeath","recip_cityid":" bobo2","result":"成功"}]}
标签: ios tableview afnetworking viewcontroller