I have a UIView inside a UIViewm and I want the inner UIView to be always centered inside the outer one, without it having to resize t
UIView
yourSubView.center = CGPointMake(yourView.frame.size.width / 2, yourView.frame.size.height / 2);
yourSubView.center = CGPoint(x: yourView.frame.size.width / 2, y: yourView.frame.size.height / 2)