I need to calculate the cell height of the table and round it to a divisible value by 5. For example, when the cell size is 116, the correct height should be 120.
The point is that I use the adaptive layout to calculate the cell height. One of the subviews of UITableViewCell is a vertical dashed line which should connect to cell below. The dashed line consists of repeating of 5 points - dash (2 points) and gap (3 points). So the height of line view should be rounded up to the value divisible by 5 for correct connection with dashed line of cell which is below.