F
F
FlooDwm2016-11-14 17:16:23
iOS
FlooDwm, 2016-11-14 17:16:23

With visual format constraints?

func setupMain(){
self.view.addSubview(selectDate)
self.view.addConstraint(NSLayoutConstraint.constraints(withVisualFormat: "H:|-16-[v0]-16-|", options: [], metrics: nil, views: ["v0":selectDate]))
}
What to specify in options?
Why does it keep giving an error. Error is something like you have an array but you do not need an array

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FlooDwm, 2016-11-14
@FlooDwm

translatesAutoresizingMaskIntoConstraints = false

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question