これは完全に重複していることはわかっていますが、何もうまくいきませんでした。はい、これは非常に単純な作業ですが、私はそれを理解できません。私がやろうとしているのは、ボタンを押して新しいビューを開くことだけです。ボタンをタップするとクラッシュします
ViewController.m
- (IBAction)buttonTapped:(id)sender {
UIViewController *WebViewController = [[UIViewController alloc]initWithNibName:@"WebViewController" bundle:nil];
[self presentViewController:WebViewController animated:YES completion: nil];
}
エラー
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x9829be0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key webView.'