Superpin isn’t working

Take a look at the console output and if you’re seeing this message:

Unknown class SPMapView in Interface Builder file.

the linker is stripping away the SPMapView symbol because it doesn’t see the Interface Builder reference. You have probably forgotten to configure the -ObjC linker flag (see Getting Started).

Crashes in the map view delegate

If you app crashes in mapView:viewForAnnotation: or mapView:didSelectAnnotationView: one common problem is that this method is called for Superpin’s SPCluster or SPClusterView objects but you’re expecting one of your own classes and are sending a method the Superpin classes don’t understand.

The easiest fix is to check via isKindOfClass: if you’re dealing with your own classes or Superpin’s.