-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TableViewCell width #295
Comments
Re move several reloadData without adverse effect. Except for the nutrients page |
Seems it has to do with loading a pageviewcontroller directly. if I swipe between pageviewcontroller all seems well. The pageViewController container has the correct size. |
It seems that the pageview container is not aware it is in a detail view. It assumes the entire screen. |
Note that the tableview header are ok and the other fields as well. Only the TagListViews are wrong!!! |
In summary, first some context. I have a very complex setup for my UITableViewController. It is in a UIPageViewController, which is in a UINavigationController, which is de DetailController of a MasterDetailViewController. No worry this all works. Changing pages in the UIPageViewController, i.e. reloading a UITableViewController can happen in different ways, either by directly accessing a page, or by swiping between pages. The tableView has two types of cells: either dynamic custom defined in te Storyboard, or dynamic custom defined in code. The Storyboard cells have always the right widths, the code cells not. When loading the pages on a iPad, the Frame widths (view, cell) are incorrect. They are those of the Storyboard or of the device, not of de detail view. Reloading the page with a swipe corrects the widths. Direct loading reverts the widths. (by the way, no problem with the cell heights). There have been several suggestions:
It seems to be a repaint issue, but the problem is where I should do this? |
I noticed that the cell has the right width when it will be displayed, but not when it is created. And this interferes with setting up the cell. Fortunately the tableView is correct, so I can force that width onto the cell with |
The width of the cell is still wrong on start up. The multiple reload do not really solve the issue.
The text was updated successfully, but these errors were encountered: