I have a UIView
on my UIViewController
. I set width and height using Editor -> Pin -> Width/Height. Also i created IBOutlet
of these constraints to change widht and height programatically. I worte code
in .h file
@property (strong, nonatomic) IBOutlet NSLayoutConstraint *viewWidth;
@property (strong, nonatomic) IBOutlet NSLayoutConstraint *viewHeight;
in .m file
self.viewWidth.constant = 480;
self.viewHeight.constant = 644;
but still its not changing the width and height of view. Am i missing something? Thanks in advance.