Reputation: 5077
While implementing SMCalloutView i added SMCalloutView.h and SMCalloutView.m. Im also using the Mapbox SDK when when trying to build i get this error:
duplicate symbol _OBJC_METACLASS_$_SMCalloutBackgroundView in:
path/Objects-normal/i386/SMCalloutView.o
path/Mapbox.framework/Mapbox(SMCalloutView.o)
ld: 19 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
So MapBox is already implementing SMCalloutView or am I wrong? If so how can I use it then?
Also the left accesoryview gets clipped in the MapBox Callout View. I'm trying to replicate SMCalloutViews example: https://github.com/nfarina/calloutview/blob/master/SampleAssets/CalloutScreenshot.png with MapBox but the blue area doesnt take all the place on the left side. Instead a small stroke of white is visible on the left, top and bottom.
Upvotes: 1
Views: 454
Reputation: 5128
Yes, Mapbox is already using SMCalloutView internally. This is a pretty classic result of Objective-C not having namespacing like some other languages. I would recommend you remove your custom added version of the library and just make use of Mapbox's directly.
Upvotes: 1