ios - iPhone 6/6+ layout - views won't touch each other/hidden margin -


i have 4 "buttons" (black) has following constraints:

  • same width superview height, multiplier 0.4 (using superview height create perfect square)
  • same height superview height, multiplier 0.4
  • trailing/trailing/top/bottom "coldiv" and"rowdiv" (red), 0 constant, 1 multiplier

my problem is, buttons don't "touch" dividers on iphone 6/6+. have "hidden" margin them. works want on smaller screens (iphone 4s).

anyone know why happens?

and no, don't have "constrain margins" checked on constraints.

it looks this:

enter image description here

update:

when set width , height's multiplier 0.3 (making buttons smaller), margins small. "hidden" margin's size relative button's size. workaround, mean smaller buttons, not thing project.

0.4 + 0.4 = 0.8. margin 0.2 difference haven't accounted for.

change widths , heights 0.5 , should good.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -