This class is not a key value compatible with coding for key map display

I created an app for MKMapView in an iOS app to display maps on my iPhone. during work i got this

Error:

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

Can someone help me solve this problem? thanks in advance.

+5
source share
1 answer

Most likely, you may have created an outlet called mapviewand deleted it later. Check if MapView outputs in Xib / Storyboard are corrupted.

+7
source

Source: https://habr.com/ru/post/1015885/


All Articles