ios - Custom UITableViewCell Leading Alignment to Right Detail Cell -


i using uitableview static uitableviewcells. using custom cells , right detail cells. uilabel within custom cells align uilabel within right detail cells.

i checked within interface builder, , shows uilabel in right detail cell have x origin 15. within custom uitableviewcell, set uilabel have same starting x origin. works great on iphones, when load app on ipad, aren't aligned properly. uilabel within right detail cells appear have starting x origin of 18.

is there can ensure uilabels have same leading alignment within interface builder, or need programmatically set constraints depending on type of device?

unfortunately don't think there's easy way make constraints based on apple's pre-made cells. you'll have go programming constraints manually, or option make own implementation of right detail cell , make constraints same other custom cell.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -