Iphone NSCFNumber无法识别的选择器
我想在视图之间发送数据,但出现了一个错误:无法识别的选择器 在调试器中,变量mystring此时是NSCFNumber,而不是NSString 过敏反应_AppDelegate.h 结果.mIphone NSCFNumber无法识别的选择器,iphone,xcode,read-write,unrecognized-selector,Iphone,Xcode,Read Write,Unrecognized Selector,我想在视图之间发送数据,但出现了一个错误:无法识别的选择器 在调试器中,变量mystring此时是NSCFNumber,而不是NSString 过敏反应_AppDelegate.h 结果.m 实例变量应采用驼峰式大小写,而不是u。也就是说,result_数组应该是resultArray。课程以大写字母开始 您确定结果数组中充满了NSString或NSNumber或其他您需要的实例吗 鉴于您正在泄漏此处的阵列 dataCenter.result_array = [[NSMutableArr
实例变量应采用驼峰式大小写,而不是u。也就是说,result_数组应该是resultArray。课程以大写字母开始 您确定结果数组中充满了NSString或NSNumber或其他您需要的实例吗 鉴于您正在泄漏此处的阵列
dataCenter.result_array = [[NSMutableArray alloc] initWithArray:Parser_result];
。。。这不太可能是过度发布的问题。还请注意,使用NSMutableArray复制不会做您想要的事情,编译器应该标记它,但不会-copy始终返回类群集实例的不可变副本。数组中充满了NSString的实例。。。我尝试了读写属性,但没有成功。。
allergy_appAppDelegate *dataCenter = (allergy_appAppDelegate *)[[UIApplication sharedApplication]delegate];
dataCenter.result_array = [[NSMutableArray alloc] initWithArray:Parser_result];
allergy_appAppDelegate *dataCenter = (allergy_appAppDelegate*)[[UIApplication sharedApplication]delegate];
show_user_array = [[NSMutableArray alloc] initWithArray: dataCenter.result_array]
for (NSString *mystring in show_user_array) {
textView.text = [[textView text] stringByAppendingString:@"\n"];
textView.text = [[textView text] stringByAppendingString:mystring];
}
dataCenter.result_array = [[NSMutableArray alloc] initWithArray:Parser_result];