nico-s
6/7/2017 - 8:07 PM

ViewController.swift

func setComputeMonteCarloButton() {
    computeMonteCarloButton.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true
    computeMonteCarloButton.topAnchor.constraint(equalTo: monteCarloGraph.bottomAnchor, constant: 12).isActive = true
    computeMonteCarloButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.75).isActive = true
    computeMonteCarloButton.heightAnchor.constraint(equalToConstant: 50).isActive = true
}