问题
I am trying to display a path in my table view. Both columns of the table view on the left side are the same for testing/demonstration purposes. Notice how the leftmost path is truncated:
When I expand the column, the (truncated) table view cell doesn't expand with the column:
My question is how would I go about resizing the cell when I resize the table view column?
回答1:
Found a solution, what you want to do is add a few constraints
Step 1: go to the table cell view for said column
Step 2: Change these constraints
Step 3: Change these constraints aswell
Step 4: run your app and look at your nice table :-D
来源:https://stackoverflow.com/questions/25505903/how-to-expand-nstablecellview-width-when-resizing-column-in-nstableview