I was trying to design a custom cell for UItableView, but for some unknown reasons the constraints that I set for the elements inside were ignored. In fact, I don't even know why the elements were arranged in the ways they did.
It looks like this in IB:
Details:
But somehow it appears like this: