在storyboard中,如果是可视化的操作,那肯定是要拖线的。

setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key name.

 

 

 

想直接把window拖一下放到viewcontroller里,这样就可以使用了,不过,这个方法不可行。

因为window已经与window连在一起了。这个是系统默认。

setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key name.

 

一不小心拖到了按钮上,所以一直报Button的错,但是我看了一下,Button也没有什么问题,但就是一运行就crash。

打开window的properties才发现,竟然还有一根线连到了Button上。

将这根线,删除就可以解决。

 

相关文章:

  • 2022-12-23
  • 2021-09-14
  • 2022-01-03
  • 2022-01-14
  • 2021-11-11
  • 2021-06-23
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2021-06-13
相关资源
相似解决方案