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
You can use
yourView.center = CGPointMake(CGRectGetMidX(superview.bounds), CGRectGetMidY(superview.bounds))
And In Swift 3.0
yourView.center = CGPoint(x: superview.bounds.midX, y: superview.bounds.midY)