Comments (11)
Hello ! I'm glad that you're using it.
Please set estimatedRowHeight
and estimatedSectionHeaderHeight
to a value that's appropriate to the heights of rows and headers. If I remember correctly, default one is 60 for both, but yours are taller.
from luexpandabletableview.
Did just that, I set them at 196 before the video was recorded. It s not because of that.
I changed the row animation from fade to none. Maybe because of that?
from luexpandabletableview.
You can try changing animation, even playing a little bit with that value to be more precisely with their real height. Also please check constraints, maybe you have some ambiguous constraints. What did you return in delegate methods for height ?
from luexpandabletableview.
Pasted the methods here
func expandableTableView(_ expandableTableView: LUExpandableTableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
/// Returning `UITableViewAutomaticDimension` value on iOS 9 will cause reloading all cells due to an iOS 9 bug with automatic dimensions
return 196
}
func expandableTableView(_ expandableTableView: LUExpandableTableView, heightForHeaderInSection section: Int) -> CGFloat {
/// Returning `UITableViewAutomaticDimension` value on iOS 9 will cause reloading all cells due to an iOS 9 bug with automatic dimensions
return 196
}
Also, yes there was something strange happening with the constraints. I have a simple container view in the section's header xib and I was always getting the UIViewAlertForUnsatisfiableConstraints
alert when the view was collapsing, so I simply changed the constraints from leading, top, bottom, trailing distance of 8 to Less or equal 8
. Maybe it's because of this?
More info: The container view is the root view of the header, after the header's own root view of course.
from luexpandabletableview.
For top, leading and trailing you can leave it equal to 8. For bottom put it also equal to 8 but change priority to 750. Did the flicker occur even after resolving UIViewAlertForUnsatisfiableConstraints
warning ?
from luexpandabletableview.
Yes, it does unfortunately. With both my edited constraints + your priority 750 suggestion.
from luexpandabletableview.
Try setting estimatedRowHeight
and estimatedSectionHeaderHeight
to 196 and return UITableViewAutomaticDimension
in delegate methods. On which iOS version flicker occurs ? On both iOS 9 and 10 ?
from luexpandabletableview.
It is worse. This is what happens now after I added UITableViewAutomaticDimension
and set the height before.
Happens on iOS 10. Didn't test on iOS 9 yet.
from luexpandabletableview.
Any updates on this?
from luexpandabletableview.
Sorry, but I don't have time to investigate until this weekend.
from luexpandabletableview.
Sorry for the delay. I took a look at your problem, but I haven't found any solution and I don't have access to your source code.
from luexpandabletableview.
Related Issues (20)
- How to close open sections when other section is clicked HOT 2
- Overlapping issue HOT 3
- Cannot use mutating member on immutable value: 'expandedSections' setter is inaccessible HOT 3
- Problem with cell background colour HOT 2
- Forwarding target for additional `UITableViewDelegate` functions HOT 4
- Scroll and expandable table
- Dynamically deleting section causes `ExpandableSectionHeader.section` to break HOT 2
- Delete function for section will expand HOT 1
- Cannot use mutating member error HOT 1
- How to get index on button click in Section Header
- How to Fetch Dynamic Data when Tapping on Section Header? HOT 1
- How can I use Parent Expandable Table view have collapsable section for example there are two sections "A" and "B". All Screens have same UITableView with two or more collapsible sections. Model objects for screens have same structure but model objects are different.
- Unavailability of "didDeSelectRowAt indexPath" function HOT 1
- UiTableViewCellSelection seems not working for LUExpandableTableView.
- table view footer HOT 2
- section click then change there background colour
- Not working fine for last row
- Collapse sections delegate
- I can't call ScrollViewDelegate methods
- Not working on simulator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luexpandabletableview.