传递字符串参数时,我的代码崩溃。
有人可以帮我解决这个问题吗? :
$php /path/to/project/index.php checkapproval index
ERROR
- [UIViewController itemstring:]:无法识别的选择器发送到实例0x7fc89b0028d0
2016-10-14 14:54:24.118 Myapp [7824:109039] ***终止app由于 未捕获的异常' NSInvalidArgumentException',原因: ' - [UIViewController itemstring:]:发送到的无法识别的选择器 实例0x7fc89b0028d0'
MyVC
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
NSIndexPath *indexPath = (NSIndexPath *)sender;
if ([[segue identifier] isEqualToString:@"abc"]) {
MyVC *myvc = [segue destinationViewController];
myvc.itemstring=@"dsdsds";
}
}