ios - How to get a button to stay on the right in a cell for all sizes? -
i trying add custom checkbox button (https://codereview.stackexchange.com/questions/69123/ibdesignable-uicheckbox) prototype table view cell in storyboard.
here album ending starting how looks on 3 iphone sizes , ending picture of interface builder: http://imgur.com/d6ejxel,9npqcna,4gdlnmt,g24fyid#0
how checkbox appear on iphone 6 on 3 sizes? in advance.
you should add auto layout constraints. in storyboards, can add auto layout make button stay on right this:
i used switch demonstrate.
1) select "button".
2) click icon on bottom circled in red.
3) constrain space between superview (the content view) , "button".
you can add different constraints top or left spacing.
Comments
Post a Comment