Claudio Barbera
Claudio Barbera

Reputation: 89

center a view between two buttons

test

Hi. I need to center two separator between buttons. That buttons are aligned without problems with auto layout, but i don't know how to align the two vertical lines.

Upvotes: 0

Views: 174

Answers (1)

vacawama
vacawama

Reputation: 154711

  1. Add a view between your buttons. Give it a clear background and pin it on the left and right to your buttons with a constant space of 0.

  2. Add your line view to this view and center it horizontally in its containing view.

Upvotes: 1

Related Questions