I’ve searched the Internet and these forums but am unable to find the answer to my problem.
I have a custom view with a WebView, which resizes to the user’s screen size (simulates a maximize), with 3 buttons at the top of the custom view.
These buttons are centered, but as the view resizes they stay where they are, resulting in them no longer being centered.
How can I center a button in a custom view?
I do not need to do this every time the screen is resized, as I can just center the buttons in the method call.
Any help is greatly appreciated!
I think Your problem is with Autosizing. So You can change Your buttons autosizing like this in Size inspector:
After that buttons will be aligned to the top center.