coloumn

I´m trying to create a table with 3 columns in xcode. How can i pin the 3rd column to the right boarder? Now, when i´m enlarge the window, a kind of "4th column" appears. I want to keep the window resizable. So there has to be a way to fix the 3rd column to the right boarder. And make the middle column resizable instead.



https://pasteboard.co/cgbvIwMhi.png

In Interface Builder (in your storyboard or XIB), select the table and look at its Attributes inspector. You will see that there are controls for resizing behavior. If you want the first or last column to grow, just choose the appropriate option.


If you want just the middle column to resize, it takes a trick. In the table view, set it to resize all columns. Then, select the columns individually, displaying the Size inspector. For columns that you don't want to resize, uncheck the 2 checkboxed that allow column resizing. For the column you want to resize, leave the boxes checked.


Incidentally, it's not a 4th column you're seeing. It's just a view background showing through between the right edge of the table view, and the right edge of its parent scroll view.

coloumn
 
 
Q