I have created the IBOutlet for the constraint of top spacing . I need to update the value that constraint programatically in viewDidLoad. Here is my declaration in IBOutlet :
IBOutlet NSLayoutConstraint *labelTopSpace;
and here is how I changing the top:
labelTopSpace.constant = 50.0;
but this is not working in my case . am I missing anything ?
Update : should I make the property of it ?