I've put a UIView subview into my storyboard scene and pinned its leading and trailing edges to the sides of the main view. I then added a center-vertically restraint to the subview, and than an apect-ratio-1:1 constraint. Just as I expected, the constraints make the subview into a square and place it in the center of the main view.
I have the subview connected to an IBOutlet in my view controller. But when I print the subview.bounds and subview.frame to the console, I get (0, 0, 240, 128), which I didn't expect. Furthering my confusion, this happens on both the iPhone 5 and iPhone 6 simulators, with have different widths.
Obviously there's something fundamental missing in my understanding of views. I'm reading the UIView programming guide end to end, to see if I can finally remedy this intellectual defect. But in the meantime, I'd be very grateful if someone would explain what's happening in this particular case.