如何设置textfield和pickerView parallel?

时间:2016-05-25 08:47:44

标签: ios constraints

我正在创建一个iOS应用,我想在我的UITextField中设置UIPickerViewUIViewController并行,但我无法设置。请帮我。这里我附加了UIViewController的截图和模拟器上的结果。 我试图添加约束但仍面临同样的问题。 帮助我解决这个问题。 提前谢谢。

Simulator image ViewController image

1 个答案:

答案 0 :(得分:0)

Give constraint to picket view 
Center.X & center.Y to view
Trailing to view
equal height & width to view

Give constraint to textfield
leading to view
trailing to picker view
center.Y to picker view

见下图

enter image description here