I did some digging, and now it seems that the login view doesn't set the width of its subviews correctly. The UIView I add to the view controller has the correct width.

As a background, I have a view controller that is shown immediately after the launch screen. It will display the login view (which is in the separate NIB, to be used in a login view controller that enables multiple account support) if there is no account in the database yet. If there is at least one, the app will show a spinner during the verification of the account(s). Now, the login view width does not match the one of its parent view controller, causing the text fields for email address and password not be aligned as I want.

Gah, except that it didn't fix the problem. I had some other changes that made it work, for some reason.

Gah… Found the "problem", I was testing only in the simulator. The subview NIB was created using "View as: iPhone 4S" setting in the IB while the view controller was using "View as: iPhone 7". Once I set them both to the same, the issue disappeared. What a lovely Xcode bug…

Do I need to set the width constraint manually? At least I can't find such an option easily from the Xcode UI.

Trying to understand how I make a subview to have the same width as the view controller it is inside of. So far, I've been failing, and googling does not return anything useful. On iOS, I should add, on Android this is pretty straightforward.

@kdfrawg Lately it has been like this also here. Which I don't like at all.

I just read how it was the proponents of globalisation who are to blame for the "decline" of the great USA. Funny, though, that the biggest proponents of globalisation are American business people…

I though we are supposed to blame Obama for everything?

Just typical November in Finland. Except that the sun is not behind clouds at the moment. That is very atypical for November.