question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom ViewCells disappear in TableView

See original GitHub issue

Description

When using a ViewCell inside a TableView, it doesn’t show up or disappears during interaction with any of the other controls inside the TableView.

I have observed three different behaviors so far:

  1. The ViewCell does not get rendered at all
  2. The ViewCell gets rendered for a split second and then disappears
  3. The ViewCell gets rendered, but disappears when interacting with any of the controls in the TableView

Steps to Reproduce

  1. Create a new MAUI App (.NET 6.0)
  2. Add a TableView incl. a TableRoot and TableSection to the MainPage (or any other page)
  3. Add a ViewCell to the TableSection
  4. Add a Grid with a Label and Button to the ViewCell
  5. Add a SwitchCell
  6. Run on an Android 12.0 device or emulator

Expected outcome: ViewCell with Label and Button is visible and remains visible Actual outcome: ViewCell and contents disappear/do not show up

Link to public reproduction project repository

https://github.com/ewerspej/dotnet-maui-bug-viewcell-disappears

Version with bug

Unknown/Other (please specify) dotnet --version says 7.0.100-rc.1.22431.12, but the project was created using .NET 6.0

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android 12.0

Did you find any workaround?

No, so far without any success.

Relevant log output

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:8
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mfeingolcommented, Feb 3, 2023

I’m having the same issue. Is TableView deprecated? Should we move on?

0reactions
eabregacommented, Jul 30, 2023

I have this trouble too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UITableView Custom Cells Disappearing content after ...
In my case, what was happening was that I had not kept a strong pointer to the tableview's dataSource. So when the tableview...
Read more >
custom cell is disappearing when tableview scrolls : r/swift
I solve this problem just with calling isHidden property for each element in the cell and explicitly set to false. So I ensure...
Read more >
tableview with custom table view cells disappear on scroll-swift
I have a table view with custom tableview cells. Each may have different heights. Totally there are 14 rows but other rows are...
Read more >
UITableView custom cell images disappear after scrolling.
I am in the process of creating my open grid view. I created a custom cell that looks like so: enter image description...
Read more >
Table view cell issues
The issue is that I can't get my custom table view cell to show when simulating the app. I have gone through this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found