此类不是键映射视图的键值编码兼容

Aug*_*n A 5 ios

我在iOS应用程序中创建了MKMapView应用程序,以便在我的iPhone中显示地图.跑步的时候我得到了这个

错误:

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

任何人都可以帮我解决这个问题吗?提前致谢.

Ani*_*ese 7

很可能你可能已经创建了一个名为mapview并在以后删除它的插座.检查MapView的出口是否在Xib/Storyboard中断开.