小编Szw*_*edo的帖子

的setValue:forUndefinedKey:]:

FinalViewWithSending *newView = [[FinalViewWithSending alloc]initWithNibName:@"FinalViewWithSending" bundle:nil];
newView.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:newView animated:YES]; //it crashes here with a thread 1 error, SIGABRT error..
Run Code Online (Sandbox Code Playgroud)

它说:

"Terminating app due to uncaught exception 'NSUnknownKeyException', 
reason: '[<FinalViewWithSending 0x1bef70> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key loginButton.'"
Run Code Online (Sandbox Code Playgroud)

没有名为loginButton的变量,所以我不知道为什么我会收到错误...

谢谢

xcode viewcontroller sigabrt modalviewcontroller

20
推荐指数
4
解决办法
3万
查看次数