跟页面中没有问题,进入第二个页面后,单击按钮完成传值,并pop到前一页,代码如下
MainTableViewController *setPrizeVC = [self.navigationController.viewControllers objectAtIndex:self.navigationController.viewControllers.count-2];
//初始化其属性
[[setPrizeVC two] removeAllObjects];
//传递参数过去
setPrizeVC.two=six;//six是可变数组,这句一执行就会报错,讲是信号
//使用popToViewController返回并传值到上一页面
[self.navigationController popToViewController:setPrizeVC animated:true];
报错内容如下:
2015-08-18 14:28:57.775 PRO3[5412:129161] -[__NSDictionaryI title]: unrecognized selector sent to instance 0x7f9ea6008b80
2015-08-18 14:28:57.779 PRO3[5412:129161] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryI title]: unrecognized selector sent to instance 0x7f9ea6008b80'
*** First throw call stack:........