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

Refresh callout view in calloutViewClicked #98

Closed martinpfannemueller closed 8 years ago

martinpfannemueller commented 8 years ago

Today I tried to change the clicked callout view inside the calloutViewClicked delegate method. The problem is that the view does not change. How can the callout view get refreshed? Code example:

- (void)calloutViewClicked:(SMCalloutView *)calloutView {
    calloutView.title = @"Test"; // Gets actually changed as seen in debugger but does not change in the UI
}

I already tried to send setNeedsDisplay to the calloutView.

martinpfannemueller commented 8 years ago

Found a similar question there: https://github.com/nfarina/calloutview/issues/56 Will try to do it like this.