Skip to content

The drop down sometimes stop working... #13

@pulkitsinghal

Description

@pulkitsinghal

It took me a really long time but I finally figured out why sometimes QA and end users would say that the drop-down wasn't working for them in my app sporadically.

Short-story:
If a drop-down was not dismissed in one tab of the tab bar controller ... we just had enough time to see it scroll down before we quickly switch to the other tab of the tab bar controller. Now if you try to get a drop-down to show, it won't work.

I am not an expert in this YRDropdownView project's code but I think it has something to do with the fact that in the following method:

+ (YRDropdownView *)showDropdownInView:(UIView *)view 
                         title:(NSString *)title 
                        detail:(NSString *)detail 
                         image:(UIImage *)image
                      animated:(BOOL)animated
                     hideAfter:(float)hideAfter

the current dropdown still has a non-nil value and we add the rest of the dropdowns to the queue ... behind something that will never get cleared out.

if (currentDropdown) // add to queue - danielgindi@gmail.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions