I want to add a set of UITextFields programatically. The amount of UITextFields do not know and it will be created in a For Loop. I can perform this, but the problem is which created UILabels placed on top of each other. How can I place some constraints which are placed below each other.
currently my code is the following:
For Loop...
{
let Description = UILabel(frame: CGRectMake(20, 100, 300, 40))
Description.font = UIFont.systemFontOfSize(18)
...
self.view.addSubview(Description)
// StackView.addSubview(Description)
// I TRIED ADDING A STACK VIEW BUT HAD THE SAME EFFECT.
}