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
I am using YRDropdownView. When I show YRDropdownView any where in the view, it can hide automatically (with delay parameter set). But when YRDropdownView is triggered in a delegate function, it can't hide automatically.
Edited: To clarify the problem and give some suggestions:
I call YRDropdownView in a delegate function which is triggered when the background download is finished. The class in which it is called is in the mainthread. The problem is that it is called in a KVO function:
Did you figure out your problem? If not, please post a little bit more sample code so I can better help you. I haven't attempted to hide a dropdown from a secondary thread.
Hi,
I am using YRDropdownView. When I show YRDropdownView any where in the view, it can hide automatically (with delay parameter set). But when YRDropdownView is triggered in a delegate function, it can't hide automatically.
Edited: To clarify the problem and give some suggestions:
I call YRDropdownView in a delegate function which is triggered when the background download is finished. The class in which it is called is in the mainthread. The problem is that it is called in a KVO function:
change:(NSDictionary *)change context:(void *)context
This is not in the mainthread. So performSelector: is not working here.
[dropdown performSelector:@selector(hideUsingAnimation:) withObject:[NSNumber numberWithBool:animated] afterDelay:delay+ANIMATION_DURATION];
Suggestion: also add a mainthread test here:
The text was updated successfully, but these errors were encountered: