-
Notifications
You must be signed in to change notification settings - Fork 13
CCdropDownMenu add duplicates in drop down menu after few minutes app running? #2
Comments
I'm sorry, could you provide some details or description? I'm not fully understand what you mean. |
Here is the code in viewDidLoad
when i first time open an application, this drop down list works perfect. After few minutes close the application, its elements are duplicated, the drop down list is multiplied with same elements repeated. |
When the contents of
log in the console? Are the contents of |
Hi, |
How does the duplication be triggered? Just wait a few minutes without doing anything after launching the app? Or terminate the app and relaunch it after few minutes? Or make the app enter background and re-enter foreground after few minutes ? |
Duplication triggered after few minutes application launched and in background the duplication occurs when i open up. But when i terminate the app and start app again then there is no duplication. |
but it works perfect in ManaDropDownMenu only GaiDropDownMenu has problem |
Well, theoretically, the difference between Can you provide a sample project? |
Add the code below at the end of
And add the method below in the implementation scope of your view controller:
What would the logs be like when the duplication is triggered? |
As of iOS 12 beta 8, the bug I have reported above is now reproduce-able 1:1, simply by selecting the drop down switch, with each new press duplicating the menu again and again. |
SOLUTION: From above iOS 12 beta 11 produces this bug 1:1. Upon calling ManaDropDownMenu: animateForExpansion, drawRect() is invoked. The following hunk exists in ManaDropDownMenu: drawRect:
This iteration adds to self.listViews, but it now appears necessary to empty the listviews array inside drawRect:
prior to this hunk, to prevent the duplication occurring. |
Any news about fixing the issue? |
Fixed this issue
This above method call more than one time that's why this issue occurred, for solve this : you can simply create one bool flag and create dropdown menu using that flag. For better understanding please check below code. @interface ManaDropDownMenu () {
}
} |
No description provided.
The text was updated successfully, but these errors were encountered: