我遇到了以下问题。 将字符串帖子传递给SecondVC.m
FirstVC.m
NSString *post = [[NSString alloc]initWithFormat:@"page=1&country=%@&state=%@&city=%@&empId=%@",_WSConstCountryID,_WSConstStateID,_WSConstStateID,_WSConstCityID,EmpId,@"0"];
NSLog(@"%@",post);
SecondVC *second = [self.storyboard instantiateViewControllerWithIdentifier:@"SecondVC"];
second.advstr = post;
//advstr is a string in SecondVC.m
[self presentViewController:second animated:YES completion:nil];
Error
reason: '-[UINavigationController setAdvstr:]: unrecognized selector sent to instance
when i degub and check
po second.advstr
错误:执行被中断,原因:尝试取消引用无效的ObjC对象或向其发送无法识别的选择器。 该过程已返回到表达式评估之前的状态。