To set frames for your view, you should access the frame property of your view and replace it with a new frame. For example:
CGRect newFrame = CGRectMake(newX, newY, newWidth, newHeight);
yourView.frame = newFrame;
Where newX
, newY
, newWidth
and newHeight
are of type CGFloat
.
You may do the same for the controls. For example:
yourLabel.frame = newFrame;
Hope this helps!