Reputation: 22958
I am using static cells with 4 sections to create a Settings scene:
For some cells I use the predefined styles: Right Detail and Basic.
But for the following cells I use Custom style with my own constraints:
My problems: I can not get the leading alignment right and also my 2-lines word-wrapping Label pushes a Switch to the right:
As you can see at the top screenshot, my constraints for the problematic Label in Custom cell are:
Please help, I wonder how other apps with Settings screens do it.
SOLUTION:
Upvotes: 0
Views: 525
Reputation: 23
If you use auto-layout,
you can turn on "Preserve Superview Margins" in
and leave Label's leading space and Switch's trailing space to 0 (default)
Upvotes: 1