I have an iOS Table with three categories. In the row data I use the new iOSCustomerTableCell container to align several bits of data in columns (thanks Xojo). Particularly on the iPad Pro simulator the category titles are much indented from the row data. It appears as if the row data extends out to the left of the table. Is this something that can be controlled? Here is an image if you are interested.
Greg,
The table itself has a left constraint of parent.left. The left-most label inside the iOSCustomTableCell container has a left constraint of parent.left+6. I assumed that the parent in the case of the label was the container and that the container fit within the table. What is the actual situation?
That sounds right, but keep in mind that if you had another high priority constraint in there, it could still push things to the left. I’d have to see your project to be sure though.
It would also be helpful if you drew an arrow or two on that screenshot showing exactly where the error is, because I’m still not clear on that.
I don’t see any conflicting constraints that would push the iOSCustomTableCell container to the left with respect to the left edge of the table.
Have annotated the screen shot to highlight the issue.
[quote=278666:@C. Thomas Baumgartner]I don’t see any conflicting constraints that would push the iOSCustomTableCell container to the left with respect to the left edge of the table.
Have annotated the screen shot to highlight the issue.[/quote]
That still looks like a constraint problem to me. does the first line of data not have player info? Does it work if you make that a space instead of an empty string?
Greg,
You are correct that the screen shot above has the first line of data with an empty string.
I looked at a table with no empty string in the player info position. Same result as above.
Another thing I noticed is the section title indent (or you can say the row data outdent) also exists on smaller screens such as my iPhone 6s, it is just much less so not so glaringly obvious.
Well, there is some indent built in on the headers, and the division line between tows does seem to follow that indent, but I don’t think I’ve ever seen what you’re experiencing on the ipad.
Greg,
I created a little project to perfectly illustrate the issue. In addition to the offset of the table from the left view edge (most obvious in the iPad Pro) as per Sascha’s feedback case, the iOSCustomTableCell left edge is displayed relative to the view left edge instead of the table left edge. I think I should make a new case for this, what do you think?