I want to know if there is a way to set the spacing between rows with static cells of tableview with storyboard.
I didn't find an attributor to do that:
I want to set the spacing between rows so it should like this:
I want to know if there is a way to set the spacing between rows with static cells of tableview with storyboard.
I didn't find an attributor to do that:
I want to set the spacing between rows so it should like this:
You cannot do that. There are several options how you can deal with this.
Simulate the separator in the cell itself (e.g., see my question).
Use every other cell as a separator (so cell at row 0 will be normal cell, cell at row 1 will be a separator, cell at row 2 a normal cell, etc.).
Use section footers as a separators, in that case there will be section per every cell - numberOfSections
will return number of all cells, numberOfRows
will return 1. Then use footerForSection
to provide appropriate "separator".
Nothing in attribute inspector to do that , you can do it like that
contentView
topView ----- height(static) ---- white background
spaceView ----- height (5) ---- gray background