Closed mustafiz012 closed 5 years ago
can you post a screenshot of what you mean ?
can you post a screenshot of what you mean ?
//Removed this image
Here is the screenshot I've been troubled with :: multiple menu items got selected at a time
@pikaboo Did you get some times to check it out? I've implemented it and facing this issue. :(
@mustafiz012 can you share the setup code for your tableview please? and expected behaviour
@pikaboo You can check https://github.com/younatics/ExpandableCell/tree/master/ExpandableCellDemo this example. This demo shows same behavior (my issue with).
TableView behavior should be like, when you select a cell (table item) that one should be highlighted (suppose, yellow colored items here).
I cannot reproduce this issue, I have this in my storyboard tableview
Please confirm you have the same and facing this issue?
Also please let me know which version of the library you are using?
@pikaboo If you please show me the single selected highlighted item??
NB: In the demo, selected item isn't keeping itself highlighted when you click on an item.
If you uncomment these lines in demo project then you'll find the output like my first picture, otherwise selected item acts like, blinking once and disappear the highlighted color
is this what you were looking for ? https://imgur.com/rHDnskM
@pikaboo Yes exactly I'm looking for this behavior. Please help me out.
because i am not able to make new version of the pod, update your Podfile with this line:
pod 'ExpandableCell', :git => 'https://github.com/younatics/ExpandableCell.git', :branch => 'master'
And you would need to override your ExpandableCell's method
isSelectable()
to keep the expanding cell selected
the expanded cells themselves behave according to the selection behaviour of the tableview
Also please click alt+shift+cmd+K
after you do pod update
I'll try it and give you feedback. Thanks in advance, hope it's gonna work 👍
I thought about it a bit, and i need to add another variable to the tableview, "displaySelection" because the current state was not the default behaviour and might ruin it for other people using the library
That's absolutely correct that you should maintain default behavior. But as it's a customized library, you guys please keep user choice (Like I choose it :) ) option. Thanks.
ok I updated
you need to set expandableTableView.autoRemoveSelection
to false, to get the behaviour you want
was your problem solved? I want to close this issue
I'm just working on this. One line (expandableTableView.autoRemoveSelection = false) didn't resolve my issue but I've noticed that demo project working fine. So as soon as I figure out my issue, I'm gonna let you know. Thanks.
the expandable cells themselves also need to be marked as selectable, if you want them to be selectable, otherwise they'll blink and open/close their expansion
@younatics please update pod version
If I select a expanded cell, it's perfectly alright. But when I go for another selection, both selected cells are being highlighted. So more than one item selection makes this issue. Please let me know if it already has a solution or any way around?