nfarina / calloutview

A lightweight callout view class for iOS mimicking UICalloutView.
http://nfarina.com/post/78014139253/smcalloutview-for-ios-7
Apache License 2.0
1.2k stars 189 forks source link

Xcode Warning when clear custom view set by another pin #102

Closed sifang closed 8 years ago

sifang commented 8 years ago

Xcode 7.2.1, no warning in the past, until I pod upgrade from version "Installing SMCalloutView 2.1.4 (was 2.1.2)" Any idea how to fix?

`- (void)popupCalloutView:(CLPlacemark *) placemark { m_calloutView.title = NSLocalizedString(@"Share Location", ""); m_calloutView.subtitle = m_centerPinLocText;

// clear any custom view that was set by another pin
m_calloutView.contentView = nil; // warning line

[m_calloutView presentCalloutFromRect:m_centerPinAnnotationView.frame inView:self.view constrainedToView:self.view animated:YES];

} `

image

sifang commented 8 years ago

@nfarina Warning is gong after the fix. Thank you for the quick response!