Closed anuraagdjain closed 7 years ago
Hi @anuraagdjain!
If you want a single footer view at the end of your table and not a section footer view, then setting self.tableView.tableFooterView
is the correct approach. Check out this answer on stackoverflow for ideas on how to add your own custom footer view to a UITableView
.
I am going to close this issue as I do not believe it is a problem with the project itself but rather a question on how to customize it. When it comes to customizing this project to fit your needs, please check out stack overflow for implementation questions as it will likely help you to more quickly solve your problem.
If I have misunderstood your situation, and there is a problem with this project, feel free to leave a comment with a code snippet so that I can better troubleshoot the issue. Thanks!
Hi, I followed the same way. And it didn't work , so I've added another cell to show my footer content and it works fine.
On 29-Apr-2017 7:43 AM, "John DeLong" notifications@github.com wrote:
Hi @anuraagdjain https://github.com/anuraagdjain!
If you want a single footer view at the end of your table and not a section footer view, then setting self.tableView.tableFooterView is the correct approach. Check out this answer http://stackoverflow.com/a/38178757 on stackoverflow for ideas on how to add your own custom footer view to a UITableView.
I am going to close this issue as I do not believe it is a problem with the project itself but rather a question on how to customize it. When it comes to customizing this project to fit your needs, please check out stack overflow https://stackoverflow.com/ for implementation questions as it will likely help you to more quickly solve your problem.
If I have misunderstood your situation, and there is a problem with this project, feel free to leave a comment with a code snippet so that I can better troubleshoot the issue. Thanks!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MichiganLabs/AnimatingTableViewHeader/issues/3#issuecomment-298140956, or mute the thread https://github.com/notifications/unsubscribe-auth/AEfLTwiA6RDwc41LcUwcBge_wnob0H4zks5r0py4gaJpZM4NLQ2u .
I think you can try adding self.tableView.tableFooterView and verify yourself that footer view animates and expands based on the height of other cells.
I tried adding the footerView. When the header is expanded and just scroll the tableview and can view the footerView , but when I try collapsing the header i.e, the tableView is expanded completely , the footerView is not viewed.
Edit:
This one returns a sticky footer view, which I don't want.
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { return myView }
and this one return at the last, but not viewing properly.
self.tableView.tableFooterView = myView
Check the image here http://imgur.com/a/sNKkY