Augustin A Augustin A - 5 months ago 61
iOS Question

this class is not key value coding-compliant for the key mapview

I created application for MKMapView in iOS application to display map in my iPhone.
while running 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 any one help me to solve this problem?
thanks in advance.

Answer

Most probably you might have created an outlet called mapview and deleted it later. Check whether the outlets of MapView is broken in Xib/Storyboard.