This is harder to do with springs & struts and setting the frame, and is simpler to handle with Auto Layout constraints, if you can use those in your app. See this video from Justin Williams for a good overview of why.
If you need to stick with springs & struts and setting the frame in code, for some reason, you'll have to recompute the center of the super view, and then use that to set the .center of your subview.