You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the autoDismissTimer is not used unless you actually set it (via autoDismissAnimated). But there is somehow a built-in default timeout (which I have not been able to find in the source code) that is about 5 or 6 secs long.
So the symptom for me is that calling autoDismissAnimated has an effect only if the interval is shorter than the built-in timeout, e.g., 2 seconds.
OK, I figured out my problem... I had wrapped the creation of the CMPopTipView in a helper method which was calling autoDismissAnimated with a default timeout. Since that timeout dismissed the view, the additional timeout (longer than the default) was ignored.
Only first entry is used e.g. when I want to reset default setup I can't as the timer is already set:
[popTipView autoDismissAnimated:YES at Interval:1.0];//used
[popTipView autoDismissAnimated:YES at Interval:10.0];//ignored
in real life it would be something along:
CMPopTipView *default = [self tooltipWithMessage:@"Message"];//default used
[default autoDismissAnimated:YES at Interval:10.0];//ignored
This can be fixed by adding:
[self.autoDismissTimer invalidate]; self.autoDismissTimer = nil;
in autoDismissAnimated:atInterval: before setting new timer
The text was updated successfully, but these errors were encountered: