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.

4) click "add # constraints"


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -