Your code has now been stripped down to the bare essentials. I see nothing obvious that would be affecting alignment.
If the view is still misbehaving, then it's not in the code you posted. That leaves two logical possibilities where the problem could be:
1. In some code you haven't posted.
2. In the nib/xib itself.
If there's no other code at all, then you'll probably have to post the complete compilable project that demonstrates the problem, so someone else can look at it. This means all the xibs, storyboards, or whatever resources are needed to build the project and run it.
If you don't want to post the actual project, you'll need to make a simplified test case. Read this:
https://forums.macrumors.com/posts/19529649/
It's not uncommon that the process of making a simplified test case and systematically verifying behavior after every single change leads you to discover what's wrong with the original project. If it doesn't, then you at least have a postable test case that others can look at, edit, compile, and run to see the behavior.