It will actually be centered at runtime. You just need to update the view's frame in Interface Builder.
Just select the view that's off and click the update button in the lower right corner:
If you want Interface Builder to automatically update your frames make sure the Automatically Refresh View option is enabled in Xcode's Editor menu:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.