if([segue.identifier isEqualToString:@"CatagoryToSets"]){
BYFSetsViewController *controller = (BYFSetsViewController *)segue.destinationViewController;
//throw exception when i try to set them
controller.workOut.catagory = catagory.text;//<<UITextfield
controller.workOut.excercise = excercize.text;
NSLog(@"passing the values %@ \n and %@ ",catagory.text,excercize.text);
}
我试图将数据传递到下一个视图BYFSetsViewController WorkOut是我创建的对象,有两个NSStrings,我想让用户输入然后传递给下一个视图 但我不断收到它无法写入该地址的错误
我得到的错误信息是
2014-03-20 19:31:11.423 Gym_Log_Book [25611:60b] * 由于未捕获的异常终止应用程序&#39; NSInvalidArgumentException&#39;,原因:&#39; - [ UIViewController workOut]:无法识别的选择器发送到实例0x8d698c0&#39;
任何帮助将不胜感激